winealsa.drv: Drop redundant calls.

This commit is contained in:
Rafał Mużyło 2011-03-03 17:54:21 +01:00 committed by Alexandre Julliard
parent d9908d2abd
commit 110e66dc0c
2 changed files with 0 additions and 6 deletions

View File

@ -422,11 +422,8 @@ static snd_pcm_uframes_t CommitAll(IDsCaptureDriverBufferImpl *This, DWORD force
static void CheckXRUN(IDsCaptureDriverBufferImpl* This)
{
snd_pcm_state_t state = snd_pcm_state(This->pcm);
snd_pcm_sframes_t delay;
int err;
snd_pcm_hwsync(This->pcm);
snd_pcm_delay(This->pcm, &delay);
if ( state == SND_PCM_STATE_XRUN )
{
err = snd_pcm_prepare(This->pcm);

View File

@ -168,11 +168,8 @@ static snd_pcm_uframes_t CommitAll(IDsDriverBufferImpl *This)
static void CheckXRUN(IDsDriverBufferImpl* This)
{
snd_pcm_state_t state = snd_pcm_state(This->pcm);
snd_pcm_sframes_t delay;
int err;
snd_pcm_hwsync(This->pcm);
snd_pcm_delay(This->pcm, &delay);
if ( state == SND_PCM_STATE_XRUN )
{
err = snd_pcm_prepare(This->pcm);