winealsa.drv: Remove wrong calls.
snd_pcm_prepare is called below, and snd_pcm_sw_params is called before sw_params is initialized.
This commit is contained in:
parent
368edb73cd
commit
15adb260b2
@ -536,8 +536,6 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
err = snd_pcm_hw_params(pcm, hw_params);
|
err = snd_pcm_hw_params(pcm, hw_params);
|
||||||
err = snd_pcm_sw_params(pcm, This->sw_params);
|
|
||||||
snd_pcm_prepare(pcm);
|
|
||||||
|
|
||||||
/* ALSA needs at least 3 buffers to work successfully */
|
/* ALSA needs at least 3 buffers to work successfully */
|
||||||
This->mmap_commitahead = 3 * psize;
|
This->mmap_commitahead = 3 * psize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user