# HG changeset patch # User Sam Lantinga # Date 1021847676 0 # Node ID 17976f0f503f4e930d2fa857de00b394e69a5839 # Parent 3fc4e71f77145c642369a215e4fa34ef753c91df Use secondary audio buffers to avoid problems on various soundcards diff -r 3fc4e71f7714 -r 17976f0f503f 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);