diff options
| author | raysan5 <[email protected]> | 2016-11-18 14:05:49 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-11-18 14:05:49 +0100 |
| commit | 0603e59cae0da924d7fe811b078972e04cdfe1e9 (patch) | |
| tree | 55aff2d0cb67ee60018911ecf04d0b1be25dd722 /examples/audio_standalone.c | |
| parent | 6b072e696d1b2b029ec1c8464ed22bf7ab65e5ee (diff) | |
| download | raylib-0603e59cae0da924d7fe811b078972e04cdfe1e9.tar.gz raylib-0603e59cae0da924d7fe811b078972e04cdfe1e9.zip | |
Review examples and added new ones
Diffstat (limited to 'examples/audio_standalone.c')
| -rw-r--r-- | examples/audio_standalone.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/examples/audio_standalone.c b/examples/audio_standalone.c index c716faed..7688b881 100644 --- a/examples/audio_standalone.c +++ b/examples/audio_standalone.c @@ -32,6 +32,8 @@ int main() { + // Initialization + //-------------------------------------------------------------------------------------- unsigned char key; InitAudioDevice(); @@ -43,7 +45,9 @@ int main() PlayMusicStream(music); printf("\nPress s or d to play sounds...\n"); - + //-------------------------------------------------------------------------------------- + + // Main loop while (key != KEY_ESCAPE) { if (kbhit()) key = getch(); @@ -63,15 +67,15 @@ int main() UpdateMusicStream(music); } + // De-Initialization + //-------------------------------------------------------------------------------------- UnloadSound(fxWav); // Unload sound data UnloadSound(fxOgg); // Unload sound data UnloadMusicStream(music); // Unload music stream data CloseAudioDevice(); - - printf("\n\nPress ENTER to close..."); - getchar(); + //-------------------------------------------------------------------------------------- return 0; }
\ No newline at end of file |
