diff options
| author | Ray <[email protected]> | 2020-01-26 18:29:13 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-01-26 18:29:13 +0100 |
| commit | 05443cd0c88f8af2e861e37d7cba2d9db7c3eadc (patch) | |
| tree | 0322fd45b5e593226afcf6df7f2150f793aa5f7e /src/raudio.c | |
| parent | b02c6127a05f7acfa6a1fac00aaf3e206d14c464 (diff) | |
| download | raylib-05443cd0c88f8af2e861e37d7cba2d9db7c3eadc.tar.gz raylib-05443cd0c88f8af2e861e37d7cba2d9db7c3eadc.zip | |
Corrected bug #989
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raudio.c b/src/raudio.c index 9fde6e95..ddca8a33 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1250,7 +1250,7 @@ Music LoadMusicStream(const char *fileName) // NOTE: Only stereo is supported for XM music.stream = InitAudioStream(48000, 16, 2); - music.sampleCount = (unsigned int)jar_xm_get_remaining_samples(ctxXm); + music.sampleCount = (unsigned int)jar_xm_get_remaining_samples(ctxXm)*2; music.loopCount = 0; // Infinite loop by default jar_xm_reset(ctxXm); // make sure we start at the beginning of the song musicLoaded = true; @@ -1274,7 +1274,7 @@ Music LoadMusicStream(const char *fileName) // NOTE: Only stereo is supported for MOD music.stream = InitAudioStream(48000, 16, 2); - music.sampleCount = (unsigned int)jar_mod_max_samples(ctxMod); + music.sampleCount = (unsigned int)jar_mod_max_samples(ctxMod)*2; music.loopCount = 0; // Infinite loop by default musicLoaded = true; } |
