test/loopwave.c
branchSDL-1.2
changeset 4002 e905bb5d9bc3
parent 1769 290b5baf2fca
     1.1 --- a/test/loopwave.c	Thu Jul 05 02:24:36 2007 +0000
     1.2 +++ b/test/loopwave.c	Thu Jul 05 02:44:54 2007 +0000
     1.3 @@ -43,14 +43,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