diff src/audio/windx5/SDL_dx5audio.c @ 375:17976f0f503f

Use secondary audio buffers to avoid problems on various soundcards
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 May 2002 22:34:36 +0000
parents f6ffac90895c
children a6fa62b1be09
line wrap: on
line diff
--- a/src/audio/windx5/SDL_dx5audio.c	Sun May 19 22:32:09 2002 +0000
+++ b/src/audio/windx5/SDL_dx5audio.c	Sun May 19 22:34:36 2002 +0000
@@ -662,10 +662,12 @@
 
 	/* Create the audio buffer to which we write */
 	NUM_BUFFERS = -1;
+#ifdef USE_PRIMARY_BUFFER
 	if ( mainwin ) {
 		NUM_BUFFERS = CreatePrimary(sound, mainwin, &mixbuf,
 						&waveformat, spec->size);
 	}
+#endif /* USE_PRIMARY_BUFFER */
 	if ( NUM_BUFFERS < 0 ) {
 		NUM_BUFFERS = CreateSecondary(sound, mainwin, &mixbuf,
 						&waveformat, spec->size);