changeset 2145:5c14978b1e97

Merged r3140:3141 from branches/SDL-1.2: loopwave fix.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 05 Jul 2007 02:45:47 +0000
parents 665c2669e6a3
children 9fcde304c7b6
files test/loopwave.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }