Fixed our own test app. :)

--HG--
branch : SDL-1.2
This commit is contained in:
Ryan C. Gordon
2007-07-05 02:44:54 +00:00
parent 66177afee0
commit 9594abc1d8

View File

@@ -43,14 +43,14 @@ void SDLCALL fillerup(void *unused, Uint8 *stream, int len)
/* Go! */
while ( waveleft <= len ) {
SDL_MixAudio(stream, waveptr, waveleft, SDL_MIX_MAXVOLUME);
SDL_memcpy(stream, waveptr, waveleft);
stream += waveleft;
len -= waveleft;
waveptr = wave.sound;
waveleft = wave.soundlen;
wave.soundpos = 0;
}
SDL_MixAudio(stream, waveptr, len, SDL_MIX_MAXVOLUME);
SDL_memcpy(stream, waveptr, len);
wave.soundpos += len;
}