Fixed our own test app. :) SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Thu, 05 Jul 2007 02:44:54 +0000
branchSDL-1.2
changeset 4002 e905bb5d9bc3
parent 4001 6831b8723a85
child 4003 ea059917233c
Fixed our own test app. :)
test/loopwave.c
--- a/test/loopwave.c	Thu Jul 05 02:24:36 2007 +0000
+++ b/test/loopwave.c	Thu Jul 05 02:44:54 2007 +0000
@@ -43,14 +43,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;
 }