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

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

revision 1255 by stargo, Sun Sep 17 11:04:50 2006 UTC revision 1256 by stargo, Sun Sep 17 11:42:22 2006 UTC
# Line 283  alsa_play(void) Line 283  alsa_play(void)
283          return;          return;
284  }  }
285    
 static struct audio_driver alsa_driver = {  
       wave_out_write:rdpsnd_queue_write,  
       wave_out_open:alsa_open,  
       wave_out_close:alsa_close,  
       wave_out_format_supported:alsa_format_supported,  
       wave_out_set_format:alsa_set_format,  
       wave_out_volume:alsa_volume,  
       wave_out_play:alsa_play,  
       name:"alsa",  
       description:"ALSA output driver, default device: " DEFAULTDEVICE,  
       next:NULL,  
 };  
   
286  struct audio_driver *  struct audio_driver *
287  alsa_register(char *options)  alsa_register(char *options)
288  {  {
289            static struct audio_driver alsa_driver;
290    
291            alsa_driver.wave_out_write = rdpsnd_queue_write;
292            alsa_driver.wave_out_open = alsa_open;
293            alsa_driver.wave_out_close = alsa_close;
294            alsa_driver.wave_out_format_supported = alsa_format_supported;
295            alsa_driver.wave_out_set_format = alsa_set_format;
296            alsa_driver.wave_out_volume = alsa_volume;
297            alsa_driver.wave_out_play = alsa_play;
298            alsa_driver.name = xstrdup("alsa");
299            alsa_driver.description = xstrdup("ALSA output driver, default device: " DEFAULTDEVICE);
300            alsa_driver.next = NULL;
301    
302          if (options)          if (options)
303          {          {
304                  pcm_name = xstrdup(options);                  pcm_name = xstrdup(options);

Legend:
Removed from v.1255  
changed lines
  Added in v.1256

  ViewVC Help
Powered by ViewVC 1.1.26