Commit 268bdb1c authored by Ryan C. Gordon's avatar Ryan C. Gordon

Fixed our own test app. :)

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402413
parent 2a913729
...@@ -43,14 +43,14 @@ void SDLCALL fillerup(void *unused, Uint8 *stream, int len) ...@@ -43,14 +43,14 @@ void SDLCALL 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