187 |
} |
} |
188 |
} |
} |
189 |
|
|
|
static struct audio_driver libao_driver = { |
|
|
.name = "libao", |
|
|
.description = "libao output driver, default device: system dependent", |
|
|
|
|
|
.add_fds = libao_add_fds, |
|
|
.check_fds = libao_check_fds, |
|
|
|
|
|
.wave_out_open = libao_open, |
|
|
.wave_out_close = libao_close, |
|
|
.wave_out_format_supported = rdpsnd_dsp_resample_supported, |
|
|
.wave_out_set_format = libao_set_format, |
|
|
.wave_out_volume = rdpsnd_dsp_softvol_set, |
|
|
|
|
|
.need_byteswap_on_be = 1, |
|
|
.need_resampling = 1, |
|
|
}; |
|
|
|
|
190 |
struct audio_driver * |
struct audio_driver * |
191 |
libao_register(char *options) |
libao_register(char *options) |
192 |
{ |
{ |
193 |
|
static struct audio_driver libao_driver; |
194 |
|
|
195 |
|
libao_driver.name = xstrdup("libao"); |
196 |
|
libao_driver.description = xstrdup("libao output driver, default device: system dependent"); |
197 |
|
|
198 |
|
libao_driver.add_fds = libao_add_fds; |
199 |
|
libao_driver.check_fds = libao_check_fds; |
200 |
|
|
201 |
|
libao_driver.wave_out_open = libao_open; |
202 |
|
libao_driver.wave_out_close = libao_close; |
203 |
|
libao_driver.wave_out_format_supported = rdpsnd_dsp_resample_supported; |
204 |
|
libao_driver.wave_out_set_format = libao_set_format; |
205 |
|
libao_driver.wave_out_volume = rdpsnd_dsp_softvol_set; |
206 |
|
|
207 |
|
libao_driver.need_byteswap_on_be = 1; |
208 |
|
libao_driver.need_resampling = 1; |
209 |
|
|
210 |
if (options) |
if (options) |
211 |
{ |
{ |
212 |
libao_device = xstrdup(options); |
libao_device = xstrdup(options); |