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 21455c14978b1e97
parent 2144 665c2669e6a3
child 2146 9fcde304c7b6
Merged r3140:3141 from branches/SDL-1.2: loopwave fix.
test/loopwave.c
     1.1 --- a/test/loopwave.c	Thu Jul 05 02:30:10 2007 +0000
     1.2 +++ b/test/loopwave.c	Thu Jul 05 02:45:47 2007 +0000
     1.3 @@ -46,14 +46,14 @@
     1.4  
     1.5      /* Go! */
     1.6      while (waveleft <= len) {
     1.7 -        SDL_MixAudio(stream, waveptr, waveleft, SDL_MIX_MAXVOLUME);
     1.8 +        SDL_memcpy(stream, waveptr, waveleft);
     1.9          stream += waveleft;
    1.10          len -= waveleft;
    1.11          waveptr = wave.sound;
    1.12          waveleft = wave.soundlen;
    1.13          wave.soundpos = 0;
    1.14      }
    1.15 -    SDL_MixAudio(stream, waveptr, len, SDL_MIX_MAXVOLUME);
    1.16 +    SDL_memcpy(stream, waveptr, len);
    1.17      wave.soundpos += len;
    1.18  }
    1.19