Fix Bug 2237 winealsa + dsound broken since CVS 20040426

Jerry Jenkins jerry_j_jenkins at yahoo.com
Sun Oct 3 09:24:16 CDT 2004


The problem has been already discussed at
http://sourceforge.net/mailarchive/message.php?msg_id=6651211
on alsa-devel.

ChangeLog:
	* dlls/winmm/winealsa/audio.c: Jerry Jenkins
<Jerry_J_Jenkins at yahoo.com>
	Don't use the SND_PCM_ASYNC flag for the moment.




		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 
-------------- next part --------------
Index: dlls/winmm/winealsa/audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winealsa/audio.c,v
retrieving revision 1.55
diff -u -r1.55 audio.c
--- dlls/winmm/winealsa/audio.c	8 Sep 2004 01:50:37 -0000	1.55
+++ dlls/winmm/winealsa/audio.c	3 Oct 2004 11:24:55 -0000
@@ -1635,8 +1635,10 @@
 
     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 @@
 
     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;



More information about the wine-patches mailing list