winealsa: Remove disabled code.
SND_PCM_ASYNC was needed to get asynchronous callbacks, but they are not used any more, so remove the code.
This commit is contained in:
parent
761ea7895b
commit
452f728f00
|
@ -463,10 +463,6 @@ static DWORD widOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
|
|||
|
||||
wwi->pcm = 0;
|
||||
flags = SND_PCM_NONBLOCK;
|
||||
#if 0
|
||||
if ( dwFlags & WAVE_DIRECTSOUND )
|
||||
flags |= SND_PCM_ASYNC;
|
||||
#endif
|
||||
|
||||
if ( (err=snd_pcm_open(&pcm, wwi->pcmname, SND_PCM_STREAM_CAPTURE, flags)) < 0 )
|
||||
{
|
||||
|
|
|
@ -647,12 +647,6 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
|
|||
|
||||
flags = SND_PCM_NONBLOCK;
|
||||
|
||||
/* FIXME - why is this ifdefed? */
|
||||
#if 0
|
||||
if ( dwFlags & WAVE_DIRECTSOUND )
|
||||
flags |= SND_PCM_ASYNC;
|
||||
#endif
|
||||
|
||||
if ( (err = snd_pcm_open(&pcm, wwo->pcmname, SND_PCM_STREAM_PLAYBACK, flags)) < 0)
|
||||
{
|
||||
ERR("Error open: %s\n", snd_strerror(err));
|
||||
|
|
Loading…
Reference in New Issue