Skip to content

Commit 05443cd

Browse files
committed
Corrected bug #989
1 parent b02c612 commit 05443cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/raudio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ Music LoadMusicStream(const char *fileName)
12501250

12511251
// NOTE: Only stereo is supported for XM
12521252
music.stream = InitAudioStream(48000, 16, 2);
1253-
music.sampleCount = (unsigned int)jar_xm_get_remaining_samples(ctxXm);
1253+
music.sampleCount = (unsigned int)jar_xm_get_remaining_samples(ctxXm)*2;
12541254
music.loopCount = 0; // Infinite loop by default
12551255
jar_xm_reset(ctxXm); // make sure we start at the beginning of the song
12561256
musicLoaded = true;
@@ -1274,7 +1274,7 @@ Music LoadMusicStream(const char *fileName)
12741274

12751275
// NOTE: Only stereo is supported for MOD
12761276
music.stream = InitAudioStream(48000, 16, 2);
1277-
music.sampleCount = (unsigned int)jar_mod_max_samples(ctxMod);
1277+
music.sampleCount = (unsigned int)jar_mod_max_samples(ctxMod)*2;
12781278
music.loopCount = 0; // Infinite loop by default
12791279
musicLoaded = true;
12801280
}

0 commit comments

Comments
 (0)