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

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

revision 1342 by ossman_, Wed Dec 6 13:29:42 2006 UTC revision 1364 by jsorg71, Thu Jan 4 04:55:56 2007 UTC
# Line 50  rdpsnd_dsp_softvol_set(uint16 left, uint Line 50  rdpsnd_dsp_softvol_set(uint16 left, uint
50  }  }
51    
52  void  void
53  rdpsnd_dsp_softvol(unsigned char *buffer, unsigned int size, WAVEFORMATEX * format)  rdpsnd_dsp_softvol(unsigned char *buffer, unsigned int size, RD_WAVEFORMATEX * format)
54  {  {
55          unsigned int factor_left, factor_right;          unsigned int factor_left, factor_right;
56          unsigned char *posin = buffer;          unsigned char *posin = buffer;
# Line 111  rdpsnd_dsp_softvol(unsigned char *buffer Line 111  rdpsnd_dsp_softvol(unsigned char *buffer
111  }  }
112    
113  void  void
114  rdpsnd_dsp_swapbytes(unsigned char *buffer, unsigned int size, WAVEFORMATEX * format)  rdpsnd_dsp_swapbytes(unsigned char *buffer, unsigned int size, RD_WAVEFORMATEX * format)
115  {  {
116          int i;          int i;
117          uint8 swap;          uint8 swap;
# Line 159  rdpsnd_dsp_resample_set(uint32 device_sr Line 159  rdpsnd_dsp_resample_set(uint32 device_sr
159  }  }
160    
161  BOOL  BOOL
162  rdpsnd_dsp_resample_supported(WAVEFORMATEX * format)  rdpsnd_dsp_resample_supported(RD_WAVEFORMATEX * format)
163  {  {
164          if (format->wFormatTag != WAVE_FORMAT_PCM)          if (format->wFormatTag != WAVE_FORMAT_PCM)
165                  return False;                  return False;
# Line 173  rdpsnd_dsp_resample_supported(WAVEFORMAT Line 173  rdpsnd_dsp_resample_supported(WAVEFORMAT
173    
174  uint32  uint32
175  rdpsnd_dsp_resample(unsigned char **out, unsigned char *in, unsigned int size,  rdpsnd_dsp_resample(unsigned char **out, unsigned char *in, unsigned int size,
176                      WAVEFORMATEX * format, BOOL stream_be)                      RD_WAVEFORMATEX * format, BOOL stream_be)
177  {  {
178  #ifdef HAVE_LIBSAMPLERATE  #ifdef HAVE_LIBSAMPLERATE
179          SRC_DATA resample_data;          SRC_DATA resample_data;
# Line 385  rdpsnd_dsp_resample(unsigned char **out, Line 385  rdpsnd_dsp_resample(unsigned char **out,
385    
386  STREAM  STREAM
387  rdpsnd_dsp_process(unsigned char *data, unsigned int size, struct audio_driver * current_driver,  rdpsnd_dsp_process(unsigned char *data, unsigned int size, struct audio_driver * current_driver,
388                     WAVEFORMATEX * format)                     RD_WAVEFORMATEX * format)
389  {  {
390          static struct stream out;          static struct stream out;
391          BOOL stream_be = False;          BOOL stream_be = False;

Legend:
Removed from v.1342  
changed lines
  Added in v.1364

  ViewVC Help
Powered by ViewVC 1.1.26