diff options
| author | Ray <[email protected]> | 2018-10-31 17:04:24 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-10-31 17:04:24 +0100 |
| commit | f7667aad8dd03c1cdaa2033f7a37815b7dd1f9b4 (patch) | |
| tree | 17157dd791825643d69a5cfea34b9b91993988a3 /examples/audio | |
| parent | b051f7778f42cf6b2a3285e01524549c15b41f4e (diff) | |
| download | raylib-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.c | 2 |
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 |
