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

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

revision 1344 by astrand, Thu Nov 2 11:55:59 2006 UTC revision 1345 by ossman_, Thu Dec 7 11:54:29 2006 UTC
# Line 46  Line 46 
46  static int snd_rate;  static int snd_rate;
47  static short samplewidth;  static short samplewidth;
48  static char *dsp_dev;  static char *dsp_dev;
 static struct audio_driver oss_driver;  
49  static BOOL in_esddsp;  static BOOL in_esddsp;
50    
51    /* This is a just a forward declaration */
52    static struct audio_driver oss_driver;
53    
54  static BOOL  static BOOL
55  detect_esddsp(void)  detect_esddsp(void)
56  {  {
# Line 296  oss_play(void) Line 298  oss_play(void)
298          return;          return;
299  }  }
300    
301    static struct audio_driver oss_driver = {
302            .name = "oss",
303            .description = "OSS output driver, default device: " DEFAULTDEVICE " or $AUDIODEV",
304    
305            .wave_out_open = oss_open,
306            .wave_out_close = oss_close,
307            .wave_out_format_supported = oss_format_supported,
308            .wave_out_set_format = oss_set_format,
309            .wave_out_volume = oss_volume,
310            .wave_out_play = oss_play,
311    
312            .need_byteswap_on_be = 0,
313            .need_resampling = 0,
314    };
315    
316  struct audio_driver *  struct audio_driver *
317  oss_register(char *options)  oss_register(char *options)
318  {  {
         oss_driver.wave_out_open = oss_open;  
         oss_driver.wave_out_close = oss_close;  
         oss_driver.wave_out_format_supported = oss_format_supported;  
         oss_driver.wave_out_set_format = oss_set_format;  
         oss_driver.wave_out_volume = oss_volume;  
         oss_driver.wave_out_play = oss_play;  
         oss_driver.name = xstrdup("oss");  
         oss_driver.description =  
                 xstrdup("OSS output driver, default device: " DEFAULTDEVICE " or $AUDIODEV");  
         oss_driver.need_byteswap_on_be = 0;  
         oss_driver.need_resampling = 0;  
         oss_driver.next = NULL;  
   
319          if (options)          if (options)
320          {          {
321                  dsp_dev = xstrdup(options);                  dsp_dev = xstrdup(options);

Legend:
Removed from v.1344  
changed lines
  Added in v.1345

  ViewVC Help
Powered by ViewVC 1.1.26