src/audio/windx5/SDL_dx5audio.c
changeset 375 17976f0f503f
parent 297 f6ffac90895c
child 453 a6fa62b1be09
equal deleted inserted replaced
374:3fc4e71f7714 375:17976f0f503f
   660 		return(-1);
   660 		return(-1);
   661 	}
   661 	}
   662 
   662 
   663 	/* Create the audio buffer to which we write */
   663 	/* Create the audio buffer to which we write */
   664 	NUM_BUFFERS = -1;
   664 	NUM_BUFFERS = -1;
       
   665 #ifdef USE_PRIMARY_BUFFER
   665 	if ( mainwin ) {
   666 	if ( mainwin ) {
   666 		NUM_BUFFERS = CreatePrimary(sound, mainwin, &mixbuf,
   667 		NUM_BUFFERS = CreatePrimary(sound, mainwin, &mixbuf,
   667 						&waveformat, spec->size);
   668 						&waveformat, spec->size);
   668 	}
   669 	}
       
   670 #endif /* USE_PRIMARY_BUFFER */
   669 	if ( NUM_BUFFERS < 0 ) {
   671 	if ( NUM_BUFFERS < 0 ) {
   670 		NUM_BUFFERS = CreateSecondary(sound, mainwin, &mixbuf,
   672 		NUM_BUFFERS = CreateSecondary(sound, mainwin, &mixbuf,
   671 						&waveformat, spec->size);
   673 						&waveformat, spec->size);
   672 		if ( NUM_BUFFERS < 0 ) {
   674 		if ( NUM_BUFFERS < 0 ) {
   673 			return(-1);
   675 			return(-1);