comparison src/audio/SDL_audio.c @ 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 30f189cdd82b
children 1d487a3fab41
comparison
equal deleted inserted replaced
1560:34b9e479047e 1561:c724c4a99759
171 stream_len = audio->convert.len; 171 stream_len = audio->convert.len;
172 } else { 172 } else {
173 silence = audio->spec.silence; 173 silence = audio->spec.silence;
174 stream_len = audio->spec.size; 174 stream_len = audio->spec.size;
175 } 175 }
176 stream = audio->fake_stream; 176
177 stream = audio->GetAudioBuf(audio);
178 if ( stream == NULL ) {
179 stream = audio->fake_stream;
180 }
177 181
178 #if SDL_AUDIO_DRIVER_AHI 182 #if SDL_AUDIO_DRIVER_AHI
179 SDL_mutexV(audio->mixer_lock); 183 SDL_mutexV(audio->mixer_lock);
180 D(bug("Entering audio loop...\n")); 184 D(bug("Entering audio loop...\n"));
181 #endif 185 #endif