changeset 4002:e905bb5d9bc3 SDL-1.2

Fixed our own test app. :)
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 05 Jul 2007 02:44:54 +0000
parents 6831b8723a85
children ea059917233c
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: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;
 }