changeset 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 3fc4e71f7714
children a5f60a847a89
files src/audio/windx5/SDL_dx5audio.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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);