Mercurial > sdl-ios-xcode
changeset 1561:c724c4a99759
Try to fill the hardware audio buffer immediately.
Fixes Bugzilla #18.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 21 Mar 2006 00:56:10 +0000 |
parents | 34b9e479047e |
children | 1d487a3fab41 |
files | src/audio/SDL_audio.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);