comparison 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
comparison
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);