Try to fill the hardware audio buffer immediately.

Fixes Bugzilla #18.
This commit is contained in:
Ryan C. Gordon
2006-03-21 00:56:10 +00:00
parent 0977bbb469
commit 66c1ba436e

View File

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