Try to fill the hardware audio buffer immediately.
Fixes Bugzilla #18. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401565
This commit is contained in:
parent
8e0454b5e9
commit
c1d67a0d0c
1 changed files with 5 additions and 1 deletions
|
@ -173,7 +173,11 @@ int SDL_RunAudio(void *audiop)
|
|||
silence = audio->spec.silence;
|
||||
stream_len = audio->spec.size;
|
||||
}
|
||||
stream = audio->fake_stream;
|
||||
|
||||
stream = audio->GetAudioBuf(audio);
|
||||
if ( stream == NULL ) {
|
||||
stream = audio->fake_stream;
|
||||
}
|
||||
|
||||
#if SDL_AUDIO_DRIVER_AHI
|
||||
SDL_mutexV(audio->mixer_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue