30 |
|
|
31 |
struct audio_driver |
struct audio_driver |
32 |
{ |
{ |
33 |
BOOL(*wave_out_open) (void); |
void (*add_fds) (int *n, fd_set * rfds, fd_set * wfds, struct timeval * tv); |
34 |
|
void (*check_fds) (fd_set * rfds, fd_set * wfds); |
35 |
|
|
36 |
|
BOOL(*wave_out_open) (void); |
37 |
void (*wave_out_close) (void); |
void (*wave_out_close) (void); |
38 |
BOOL(*wave_out_format_supported) (WAVEFORMATEX * pwfx); |
BOOL(*wave_out_format_supported) (WAVEFORMATEX * pwfx); |
39 |
BOOL(*wave_out_set_format) (WAVEFORMATEX * pwfx); |
BOOL(*wave_out_set_format) (WAVEFORMATEX * pwfx); |
40 |
void (*wave_out_volume) (uint16 left, uint16 right); |
void (*wave_out_volume) (uint16 left, uint16 right); |
41 |
void (*wave_out_play) (void); |
|
42 |
char *name; |
char *name; |
43 |
char *description; |
char *description; |
44 |
int need_byteswap_on_be; |
int need_byteswap_on_be; |
46 |
struct audio_driver *next; |
struct audio_driver *next; |
47 |
}; |
}; |
48 |
|
|
|
extern BOOL g_dsp_busy; |
|
|
extern int g_dsp_fd; |
|
|
|
|
49 |
/* Driver register functions */ |
/* Driver register functions */ |
50 |
struct audio_driver *alsa_register(char *options); |
struct audio_driver *alsa_register(char *options); |
51 |
struct audio_driver *libao_register(char *options); |
struct audio_driver *libao_register(char *options); |