25 |
uint8 index; |
uint8 index; |
26 |
}; |
}; |
27 |
|
|
28 |
|
struct audio_driver |
29 |
|
{ |
30 |
|
void (*wave_out_write) (STREAM s, uint16 tick, uint8 index); |
31 |
|
BOOL(*wave_out_open) (void); |
32 |
|
void (*wave_out_close) (void); |
33 |
|
BOOL(*wave_out_format_supported) (WAVEFORMATEX * pwfx); |
34 |
|
BOOL(*wave_out_set_format) (WAVEFORMATEX * pwfx); |
35 |
|
void (*wave_out_volume) (uint16 left, uint16 right); |
36 |
|
void (*wave_out_play) (void); |
37 |
|
char *name; |
38 |
|
char *description; |
39 |
|
struct audio_driver *next; |
40 |
|
}; |
41 |
|
|
42 |
extern BOOL g_dsp_busy; |
extern BOOL g_dsp_busy; |
43 |
extern int g_dsp_fd; |
extern int g_dsp_fd; |
44 |
|
|
45 |
void rdpsnd_queue_write(STREAM s, uint16 tick, uint8 index); |
void rdpsnd_queue_write(STREAM s, uint16 tick, uint8 index); |
46 |
inline struct audio_packet *rdpsnd_queue_current_packet(void); |
struct audio_packet *rdpsnd_queue_current_packet(void); |
47 |
inline BOOL rdpsnd_queue_empty(void); |
BOOL rdpsnd_queue_empty(void); |
48 |
inline void rdpsnd_queue_init(void); |
void rdpsnd_queue_init(void); |
49 |
inline void rdpsnd_queue_next(void); |
void rdpsnd_queue_next(void); |
50 |
inline int rdpsnd_queue_next_tick(void); |
int rdpsnd_queue_next_tick(void); |
51 |
|
|
52 |
|
/* Driver register functions */ |
53 |
|
struct audio_driver *alsa_register(char *options); |
54 |
|
struct audio_driver *libao_register(char *options); |
55 |
|
struct audio_driver *oss_register(char *options); |
56 |
|
struct audio_driver *sgi_register(char *options); |
57 |
|
struct audio_driver *sun_register(char *options); |