From 30b8cccc079c6f22fba3f300b0f2e7c4936c3511 Mon Sep 17 00:00:00 2001 From: Jerry Jenkins Date: Mon, 4 Oct 2004 19:30:04 +0000 Subject: [PATCH] Don't use the SND_PCM_ASYNC flag for the moment. --- dlls/winmm/winealsa/audio.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c index ecbd5741c30..e4531b2a5f2 100644 --- a/dlls/winmm/winealsa/audio.c +++ b/dlls/winmm/winealsa/audio.c @@ -1635,8 +1635,10 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags) wwo->p_handle = 0; flags = SND_PCM_NONBLOCK; +#if 0 if ( dwFlags & WAVE_DIRECTSOUND ) - flags |= SND_PCM_ASYNC; + flags |= SND_PCM_ASYNC; +#endif if ( (err = snd_pcm_open(&pcm, wwo->device, SND_PCM_STREAM_PLAYBACK, flags)) < 0) { @@ -3123,10 +3125,12 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags) wwi->p_handle = 0; flags = SND_PCM_NONBLOCK; +#if 0 if ( dwFlags & WAVE_DIRECTSOUND ) - flags |= SND_PCM_ASYNC; + flags |= SND_PCM_ASYNC; +#endif - if ( (err=snd_pcm_open(&pcm, wwi->device, SND_PCM_STREAM_CAPTURE, dwFlags)) < 0 ) + if ( (err=snd_pcm_open(&pcm, wwi->device, SND_PCM_STREAM_CAPTURE, flags)) < 0 ) { ERR("Error open: %s\n", snd_strerror(err)); return MMSYSERR_NOTENABLED;