src/audio/windx5/SDL_dx5audio.c
changeset 375 17976f0f503f
parent 297 f6ffac90895c
child 453 a6fa62b1be09
--- 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);