winealsa.drv: Tell ALSA to play silence during underruns.

This commit is contained in:
Andrew Eikum 2011-08-05 09:33:00 -05:00 committed by Alexandre Julliard
parent 0b2a67cffb
commit 8c109aee13
1 changed files with 8 additions and 0 deletions

View File

@ -842,6 +842,14 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface,
goto exit;
}
if((err = snd_pcm_sw_params_set_silence_size(This->pcm_handle,
sw_params, boundary)) < 0){
WARN("Unable to set silence size to %lx: %d (%s)\n", boundary, err,
snd_strerror(err));
hr = E_FAIL;
goto exit;
}
if((err = snd_pcm_sw_params(This->pcm_handle, sw_params)) < 0){
WARN("Unable to set sw params: %d (%s)\n", err, snd_strerror(err));
hr = E_FAIL;