/[rdesktop]/sourceforge.net/trunk/rdesktop/rdpsnd.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/rdpsnd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1265 by stargo, Sun Sep 17 20:06:37 2006 UTC revision 1271 by stargo, Mon Sep 18 21:42:50 2006 UTC
# Line 289  rdpsnd_init(void) Line 289  rdpsnd_init(void)
289  BOOL  BOOL
290  rdpsnd_auto_open(void)  rdpsnd_auto_open(void)
291  {  {
292          current_driver = drivers;          static BOOL failed = False;
293          while (current_driver != NULL)  
294            if (!failed)
295          {          {
296                  DEBUG(("trying %s...\n", current_driver->name));                  struct audio_driver *auto_driver = current_driver;
297                  if (current_driver->wave_out_open())  
298                    current_driver = drivers;
299                    while (current_driver != NULL)
300                  {                  {
301                          DEBUG(("selected %s\n", current_driver->name));                          DEBUG(("trying %s...\n", current_driver->name));
302                          return True;                          if (current_driver->wave_out_open())
303                            {
304                                    DEBUG(("selected %s\n", current_driver->name));
305                                    return True;
306                            }
307                            g_dsp_fd = 0;
308                            current_driver = current_driver->next;
309                  }                  }
                 g_dsp_fd = 0;  
                 current_driver = current_driver->next;  
         }  
310    
311          warning("no working audio-driver found\n");                  warning("no working audio-driver found\n");
312                    failed = True;
313                    current_driver = auto_driver;
314            }
315    
316          return False;          return False;
317  }  }

Legend:
Removed from v.1265  
changed lines
  Added in v.1271

  ViewVC Help
Powered by ViewVC 1.1.26