Don't use the SND_PCM_ASYNC flag for the moment.

This commit is contained in:
Jerry Jenkins 2004-10-04 19:30:04 +00:00 committed by Alexandre Julliard
parent 1c9d435ee3
commit 30b8cccc07
1 changed files with 7 additions and 3 deletions

View File

@ -1635,8 +1635,10 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwo->p_handle = 0; wwo->p_handle = 0;
flags = SND_PCM_NONBLOCK; flags = SND_PCM_NONBLOCK;
#if 0
if ( dwFlags & WAVE_DIRECTSOUND ) 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) 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; wwi->p_handle = 0;
flags = SND_PCM_NONBLOCK; flags = SND_PCM_NONBLOCK;
#if 0
if ( dwFlags & WAVE_DIRECTSOUND ) 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)); ERR("Error open: %s\n", snd_strerror(err));
return MMSYSERR_NOTENABLED; return MMSYSERR_NOTENABLED;