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:
Maarten Lankhorst 2009-11-26 12:13:28 +01:00 committed by Alexandre Julliard
parent 368edb73cd
commit 15adb260b2
1 changed files with 0 additions and 2 deletions

View File

@ -536,8 +536,6 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx)
}
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 */
This->mmap_commitahead = 3 * psize;