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 |
21 |
/* Software volume control */ |
/* Software volume control */ |
22 |
void rdpsnd_dsp_softvol_set(uint16 left, uint16 right); |
void rdpsnd_dsp_softvol_set(uint16 left, uint16 right); |
23 |
|
|
24 |
|
/* Endian conversion */ |
25 |
|
void rdpsnd_dsp_swapbytes(unsigned char *buffer, unsigned int size, RD_WAVEFORMATEX * format); |
26 |
|
|
27 |
/* Resample control */ |
/* Resample control */ |
28 |
BOOL rdpsnd_dsp_resample_set(uint32 device_srate, uint16 device_bitspersample, |
RD_BOOL rdpsnd_dsp_resample_set(uint32 device_srate, uint16 device_bitspersample, |
29 |
uint16 device_channels); |
uint16 device_channels); |
30 |
BOOL rdpsnd_dsp_resample_supported(WAVEFORMATEX * pwfx); |
RD_BOOL rdpsnd_dsp_resample_supported(RD_WAVEFORMATEX * pwfx); |
31 |
|
|
32 |
STREAM rdpsnd_dsp_process(unsigned char *data, unsigned int size, |
STREAM rdpsnd_dsp_process(unsigned char *data, unsigned int size, |
33 |
struct audio_driver *current_driver, WAVEFORMATEX * format); |
struct audio_driver *current_driver, RD_WAVEFORMATEX * format); |