Merged r3140:3141 from branches/SDL-1.2: loopwave fix.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 05 Jul 2007 02:45:47 +0000
changeset 2145 5c14978b1e97
parent 2144 665c2669e6a3
child 2146 9fcde304c7b6
Merged r3140:3141 from branches/SDL-1.2: loopwave fix.
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;
 }