/[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 1260 by stargo, Sun Sep 17 15:25:10 2006 UTC revision 1261 by stargo, Sun Sep 17 15:33:29 2006 UTC
# Line 22  Line 22 
22    
23  #include "rdesktop.h"  #include "rdesktop.h"
24  #include "rdpsnd.h"  #include "rdpsnd.h"
25    #include "rdpsnd_dsp.h"
26  #include <unistd.h>  #include <unistd.h>
27  #include <fcntl.h>  #include <fcntl.h>
28  #include <errno.h>  #include <errno.h>
# Line 207  alsa_set_format(WAVEFORMATEX * pwfx) Line 208  alsa_set_format(WAVEFORMATEX * pwfx)
208  }  }
209    
210  void  void
 alsa_volume(uint16 left, uint16 right)  
 {  
         static int warned = 0;  
   
         if (!warned)  
         {  
                 warning("volume changes currently not supported with alsa-output\n");  
                 warned = 1;  
         }  
 }  
   
 void  
211  alsa_play(void)  alsa_play(void)
212  {  {
213          struct audio_packet *packet;          struct audio_packet *packet;
# Line 293  alsa_register(char *options) Line 282  alsa_register(char *options)
282          alsa_driver.wave_out_close = alsa_close;          alsa_driver.wave_out_close = alsa_close;
283          alsa_driver.wave_out_format_supported = alsa_format_supported;          alsa_driver.wave_out_format_supported = alsa_format_supported;
284          alsa_driver.wave_out_set_format = alsa_set_format;          alsa_driver.wave_out_set_format = alsa_set_format;
285          alsa_driver.wave_out_volume = alsa_volume;          alsa_driver.wave_out_volume = rdpsnd_dsp_softvol_set;
286          alsa_driver.wave_out_play = alsa_play;          alsa_driver.wave_out_play = alsa_play;
287          alsa_driver.name = xstrdup("alsa");          alsa_driver.name = xstrdup("alsa");
288          alsa_driver.description = xstrdup("ALSA output driver, default device: " DEFAULTDEVICE);          alsa_driver.description = xstrdup("ALSA output driver, default device: " DEFAULTDEVICE);

Legend:
Removed from v.1260  
changed lines
  Added in v.1261

  ViewVC Help
Powered by ViewVC 1.1.26