[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    [winealsa] Don't stop looking for devices if one can't be opened
From:       Paul van Schayck <polleke () gmail ! com>
Date:       2005-03-30 16:57:21
Message-ID: 13151a5105033008576fe18008 () mail ! gmail ! com
[Download RAW message or body]

We will now detect all devices even if one can't be opened. This is
probably only usefull with *Device set to plug:hw (or nothing at all).

Changelog:
Don't stop looking for devices if one can't be opened.

["audio.diff" (text/x-patch)]

Index: audio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/winealsa/audio.c,v
retrieving revision 1.76
diff -u -r1.76 audio.c
--- audio.c	29 Mar 2005 19:48:07 -0000	1.76
+++ audio.c	30 Mar 2005 16:53:29 -0000
@@ -831,7 +831,7 @@
         h = NULL;
         snd_pcm_open(&h, wwo->device, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
         if (!h)
-            break;
+            continue;
 
         EXIT_ON_ERROR( snd_pcm_info(h, info) , "pcm info" );
 
@@ -993,7 +993,7 @@
         h = NULL;
         snd_pcm_open(&h, wwi->device, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK);
         if (!h)
-            break;
+            continue;
 
         EXIT_ON_ERROR( snd_pcm_info(h, info) , "pcm info" );
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic