1 |
/* |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Sound DSP routines |
Sound DSP routines |
4 |
Copyright (C) Michael Gernoth 2006 |
Copyright (C) Michael Gernoth 2006-2008 |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
18 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 |
*/ |
*/ |
20 |
|
|
21 |
|
/* Software volume control */ |
22 |
void rdpsnd_dsp_softvol_set(uint16 left, uint16 right); |
void rdpsnd_dsp_softvol_set(uint16 left, uint16 right); |
23 |
unsigned char *rdpsnd_dsp_process(unsigned char *inbuffer, unsigned int size, |
|
24 |
struct audio_driver *current_driver, WAVEFORMATEX * format); |
/* Endian conversion */ |
25 |
|
void rdpsnd_dsp_swapbytes(unsigned char *buffer, unsigned int size, RD_WAVEFORMATEX * format); |
26 |
|
|
27 |
|
/* Resample control */ |
28 |
|
RD_BOOL rdpsnd_dsp_resample_set(uint32 device_srate, uint16 device_bitspersample, |
29 |
|
uint16 device_channels); |
30 |
|
RD_BOOL rdpsnd_dsp_resample_supported(RD_WAVEFORMATEX * pwfx); |
31 |
|
|
32 |
|
STREAM rdpsnd_dsp_process(unsigned char *data, unsigned int size, |
33 |
|
struct audio_driver *current_driver, RD_WAVEFORMATEX * format); |