Skip to content
Permalink
Browse files
Fixed our own test app. :)
  • Loading branch information
icculus committed Jul 5, 2007
1 parent 4e47787 commit 9f3749b5cea50b9900030517a7b2e89f0f4a8bb5

File 1 of 1 in 9f3749b

@@ -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;
}

0 comments on commit 9f3749b

Please sign in to comment.