Try to fill the hardware audio buffer immediately.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 21 Mar 2006 00:56:10 +0000
changeset 1561c724c4a99759
parent 1560 34b9e479047e
child 1562 1d487a3fab41
Try to fill the hardware audio buffer immediately.

Fixes Bugzilla #18.
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Tue Mar 21 00:35:22 2006 +0000
     1.2 +++ b/src/audio/SDL_audio.c	Tue Mar 21 00:56:10 2006 +0000
     1.3 @@ -173,7 +173,11 @@
     1.4  		silence = audio->spec.silence;
     1.5  		stream_len = audio->spec.size;
     1.6  	}
     1.7 -	stream = audio->fake_stream;
     1.8 +
     1.9 +	stream = audio->GetAudioBuf(audio);
    1.10 +	if ( stream == NULL ) {
    1.11 +		stream = audio->fake_stream;
    1.12 +	}
    1.13  
    1.14  #if SDL_AUDIO_DRIVER_AHI
    1.15  	SDL_mutexV(audio->mixer_lock);