Commit 8f06683b authored by Ryan C. Gordon's avatar Ryan C. Gordon

Merged r3140:3141 from branches/SDL-1.2: loopwave fix.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402414
parent 409c8b58
...@@ -46,14 +46,14 @@ fillerup(void *unused, Uint8 * stream, int len) ...@@ -46,14 +46,14 @@ fillerup(void *unused, Uint8 * stream, int len)
/* Go! */ /* Go! */
while (waveleft <= len) { while (waveleft <= len) {
SDL_MixAudio(stream, waveptr, waveleft, SDL_MIX_MAXVOLUME); SDL_memcpy(stream, waveptr, waveleft);
stream += waveleft; stream += waveleft;
len -= waveleft; len -= waveleft;
waveptr = wave.sound; waveptr = wave.sound;
waveleft = wave.soundlen; waveleft = wave.soundlen;
wave.soundpos = 0; wave.soundpos = 0;
} }
SDL_MixAudio(stream, waveptr, len, SDL_MIX_MAXVOLUME); SDL_memcpy(stream, waveptr, len);
wave.soundpos += len; wave.soundpos += len;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment