Maarten Lankhorst : winealsa: Remove disabled code.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 23 14:26:24 CDT 2007


Module: wine
Branch: master
Commit: 452f728f007f81570f35709c47bf043f08953b34
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=452f728f007f81570f35709c47bf043f08953b34

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Sat Apr 21 20:40:20 2007 +0200

winealsa: Remove disabled code.

SND_PCM_ASYNC was needed to get asynchronous callbacks, but they are
not used any more, so remove the code.

---

 dlls/winealsa.drv/wavein.c  |    4 ----
 dlls/winealsa.drv/waveout.c |    6 ------
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/dlls/winealsa.drv/wavein.c b/dlls/winealsa.drv/wavein.c
index d816706..97b8e5a 100644
--- a/dlls/winealsa.drv/wavein.c
+++ b/dlls/winealsa.drv/wavein.c
@@ -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 )
     {
diff --git a/dlls/winealsa.drv/waveout.c b/dlls/winealsa.drv/waveout.c
index 6a8a435..d7bd6ad 100644
--- a/dlls/winealsa.drv/waveout.c
+++ b/dlls/winealsa.drv/waveout.c
@@ -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));




More information about the wine-cvs mailing list