Skip to content

Commit

Permalink
Use secondary audio buffers to avoid problems on various soundcards
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 19, 2002
1 parent 7ef6675 commit 595670c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio/windx5/SDL_dx5audio.c
Expand Up @@ -662,10 +662,12 @@ static int DX5_OpenAudio(_THIS, SDL_AudioSpec *spec)

/* 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);
Expand Down

0 comments on commit 595670c

Please sign in to comment.