diff options
| author | raysan5 <[email protected]> | 2015-08-27 16:13:31 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2015-08-27 16:13:49 +0200 |
| commit | 997170a317bb8077cb96d3fc757c6cde0c0ea466 (patch) | |
| tree | 139171eed30f8d0f77ea4873ca1f0510dc5b0812 /examples/audio_music_stream.c | |
| parent | 8745d733f98e1c9a647a8bd8b85cf0781782d4b7 (diff) | |
| download | raylib-997170a317bb8077cb96d3fc757c6cde0c0ea466.tar.gz raylib-997170a317bb8077cb96d3fc757c6cde0c0ea466.zip | |
Examples reviewed
Diffstat (limited to 'examples/audio_music_stream.c')
| -rw-r--r-- | examples/audio_music_stream.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/audio_music_stream.c b/examples/audio_music_stream.c index 560347e6..3add91da 100644 --- a/examples/audio_music_stream.c +++ b/examples/audio_music_stream.c @@ -7,7 +7,7 @@ * This example has been created using raylib 1.1 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) * -* Copyright (c) 2014 Ramon Santamaria (Ray San - [email protected]) +* Copyright (c) 2014 Ramon Santamaria (@raysan5) * ********************************************************************************************/ @@ -58,7 +58,12 @@ int main() SetMusicVolume(volume); } */ + if (IsWindowMinimized()) PauseMusicStream(); + else ResumeMusicStream(); + timePlayed = GetMusicTimePlayed() / GetMusicTimeLength() * 100 * 4; // We scale by 4 to fit 400 pixels + + UpdateMusicStream(); //---------------------------------------------------------------------------------- // Draw |
