# HG changeset patch # User Ryan C. Gordon # Date 1142902570 0 # Node ID c724c4a997594979404cf8532deebc2eb4e5ddd8 # Parent 34b9e479047eff37e44d1f9a56deb084651bea73 Try to fill the hardware audio buffer immediately. Fixes Bugzilla #18. diff -r 34b9e479047e -r c724c4a99759 src/audio/SDL_audio.c --- a/src/audio/SDL_audio.c Tue Mar 21 00:35:22 2006 +0000 +++ b/src/audio/SDL_audio.c Tue Mar 21 00:56:10 2006 +0000 @@ -173,7 +173,11 @@ 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);