summaryrefslogtreecommitdiffhomepage
path: root/examples/audio
diff options
context:
space:
mode:
authorRay <[email protected]>2018-10-31 17:04:24 +0100
committerRay <[email protected]>2018-10-31 17:04:24 +0100
commitf7667aad8dd03c1cdaa2033f7a37815b7dd1f9b4 (patch)
tree17157dd791825643d69a5cfea34b9b91993988a3 /examples/audio
parentb051f7778f42cf6b2a3285e01524549c15b41f4e (diff)
downloadraylib-f7667aad8dd03c1cdaa2033f7a37815b7dd1f9b4.tar.gz
raylib-f7667aad8dd03c1cdaa2033f7a37815b7dd1f9b4.zip
Reviewed audio issues
- Updated dr_mp3 and implemented it - Reviewed sampleCount vs frameCount - Reviewed XM playing (some weird things...)
Diffstat (limited to 'examples/audio')
-rw-r--r--examples/audio/audio_music_stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/audio/audio_music_stream.c b/examples/audio/audio_music_stream.c
index f9fe23d2..26450a86 100644
--- a/examples/audio/audio_music_stream.c
+++ b/examples/audio/audio_music_stream.c
@@ -59,6 +59,8 @@ int main()
// Get timePlayed scaled to bar dimensions (400 pixels)
timePlayed = GetMusicTimePlayed(music)/GetMusicTimeLength(music)*400;
+
+ if (timePlayed > 400) StopMusicStream(music);
//----------------------------------------------------------------------------------
// Draw