Skip to content

Commit

Permalink
Try to fill the hardware audio buffer immediately.
Browse files Browse the repository at this point in the history
     Fixes Bugzilla #18.
  • Loading branch information
icculus committed Mar 21, 2006
1 parent 0e2dc8c commit 627d788
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/audio/SDL_audio.c
Expand Up @@ -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);
Expand Down

0 comments on commit 627d788

Please sign in to comment.