1 |
/* -*- c-basic-offset: 8 -*- |
/* -*- c-basic-offset: 8 -*- |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Sound Channel Process Functions - Open Sound System |
Sound Channel Process Functions - Open Sound System |
4 |
Copyright (C) Matthew Chapman 2003 |
Copyright (C) Matthew Chapman 2003-2007 |
5 |
Copyright (C) GuoJunBo guojunbo@ict.ac.cn 2003 |
Copyright (C) GuoJunBo guojunbo@ict.ac.cn 2003 |
6 |
Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB |
Copyright 2006-2007 Pierre Ossman <ossman@cendio.se> for Cendio AB |
7 |
|
|
8 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
9 |
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 |
219 |
} |
} |
220 |
|
|
221 |
BOOL |
BOOL |
222 |
oss_format_supported(WAVEFORMATEX * pwfx) |
oss_format_supported(RD_WAVEFORMATEX * pwfx) |
223 |
{ |
{ |
224 |
if (pwfx->wFormatTag != WAVE_FORMAT_PCM) |
if (pwfx->wFormatTag != WAVE_FORMAT_PCM) |
225 |
return False; |
return False; |
232 |
} |
} |
233 |
|
|
234 |
BOOL |
BOOL |
235 |
oss_set_format(WAVEFORMATEX * pwfx) |
oss_set_format(RD_WAVEFORMATEX * pwfx) |
236 |
{ |
{ |
237 |
int fragments; |
int fragments; |
238 |
static BOOL driver_broken = False; |
static BOOL driver_broken = False; |