Commit c1d67a0d authored by Ryan C. Gordon's avatar Ryan C. Gordon

Try to fill the hardware audio buffer immediately.

     Fixes Bugzilla #18.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401565
parent 8e0454b5
...@@ -173,7 +173,11 @@ int SDL_RunAudio(void *audiop) ...@@ -173,7 +173,11 @@ int SDL_RunAudio(void *audiop)
silence = audio->spec.silence; silence = audio->spec.silence;
stream_len = audio->spec.size; 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 #if SDL_AUDIO_DRIVER_AHI
SDL_mutexV(audio->mixer_lock); SDL_mutexV(audio->mixer_lock);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment