test/loopwave.c
changeset 2145 5c14978b1e97
parent 2049 5f6550e5184f
child 2179 8b76cc268771
     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