Use secondary audio buffers to avoid problems on various soundcards
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40376
This commit is contained in:
parent
85149547fe
commit
ec61970a65
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue