# HG changeset patch # User Ryan C. Gordon # Date 1183603547 0 # Node ID 5c14978b1e97cfe8a1621101fc182cf2638bdec1 # Parent 665c2669e6a3837c1f3d97f0974ab0188ca8a6b5 Merged r3140:3141 from branches/SDL-1.2: loopwave fix. diff -r 665c2669e6a3 -r 5c14978b1e97 test/loopwave.c --- a/test/loopwave.c Thu Jul 05 02:30:10 2007 +0000 +++ b/test/loopwave.c Thu Jul 05 02:45:47 2007 +0000 @@ -46,14 +46,14 @@ /* 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; }