/[rdesktop]/sourceforge.net/trunk/rdesktop/rdpsnd_libao.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_libao.c

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

revision 1267 by stargo, Mon Sep 18 09:28:42 2006 UTC revision 1268 by stargo, Mon Sep 18 09:34:34 2006 UTC
# Line 234  struct audio_driver * Line 234  struct audio_driver *
234  libao_register(char *options)  libao_register(char *options)
235  {  {
236          static struct audio_driver libao_driver;          static struct audio_driver libao_driver;
237            struct ao_info *libao_info;
238          static char description[101];          static char description[101];
239    
240          libao_driver.wave_out_write = rdpsnd_queue_write;          libao_driver.wave_out_write = rdpsnd_queue_write;
# Line 249  libao_register(char *options) Line 250  libao_register(char *options)
250          libao_driver.next = NULL;          libao_driver.next = NULL;
251    
252          ao_initialize();          ao_initialize();
253          snprintf(description, 100, "libao output driver, default device: %s",  
254                   ao_driver_info(ao_default_driver_id())->short_name);          libao_info = ao_driver_info(ao_default_driver_id());
255    
256            if (libao_info)
257            {
258                    snprintf(description, 100, "libao output driver, default device: %s",
259                                    libao_info->short_name);
260            }
261            else
262            {
263                    snprintf(description, 100, "libao output driver, default device: none");
264            }
265    
266          ao_shutdown();          ao_shutdown();
267    
268          if (options)          if (options)

Legend:
Removed from v.1267  
changed lines
  Added in v.1268

  ViewVC Help
Powered by ViewVC 1.1.26