/[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 1346 by ossman_, Thu Dec 7 15:23:45 2006 UTC revision 1351 by stargo, Sun Dec 24 13:53:23 2006 UTC
# Line 187  libao_play(void) Line 187  libao_play(void)
187          }          }
188  }  }
189    
 static struct audio_driver libao_driver = {  
         .name = "libao",  
         .description = "libao output driver, default device: system dependent",  
   
         .add_fds = libao_add_fds,  
         .check_fds = libao_check_fds,  
   
         .wave_out_open = libao_open,  
         .wave_out_close = libao_close,  
         .wave_out_format_supported = rdpsnd_dsp_resample_supported,  
         .wave_out_set_format = libao_set_format,  
         .wave_out_volume = rdpsnd_dsp_softvol_set,  
   
         .need_byteswap_on_be = 1,  
         .need_resampling = 1,  
 };  
   
190  struct audio_driver *  struct audio_driver *
191  libao_register(char *options)  libao_register(char *options)
192  {  {
193            static struct audio_driver libao_driver;
194    
195            libao_driver.name = xstrdup("libao");
196            libao_driver.description = xstrdup("libao output driver, default device: system dependent");
197    
198            libao_driver.add_fds = libao_add_fds;
199            libao_driver.check_fds = libao_check_fds;
200    
201            libao_driver.wave_out_open = libao_open;
202            libao_driver.wave_out_close = libao_close;
203            libao_driver.wave_out_format_supported = rdpsnd_dsp_resample_supported;
204            libao_driver.wave_out_set_format = libao_set_format;
205            libao_driver.wave_out_volume = rdpsnd_dsp_softvol_set;
206    
207            libao_driver.need_byteswap_on_be = 1;
208            libao_driver.need_resampling = 1;
209    
210          if (options)          if (options)
211          {          {
212                  libao_device = xstrdup(options);                  libao_device = xstrdup(options);

Legend:
Removed from v.1346  
changed lines
  Added in v.1351

  ViewVC Help
Powered by ViewVC 1.1.26