winealsa.drv: Tell ALSA to play silence during underruns.
This commit is contained in:
parent
0b2a67cffb
commit
8c109aee13
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue