Use secondary audio buffers to avoid problems on various soundcards
authorSam Lantinga <slouken@libsdl.org>
Sun, 19 May 2002 22:34:36 +0000
changeset 375 17976f0f503f
parent 374 3fc4e71f7714
child 376 a5f60a847a89
Use secondary audio buffers to avoid problems on various soundcards
src/audio/windx5/SDL_dx5audio.c
--- 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);