22#define AUDSRV_INIT 0x0000
23#define AUDSRV_QUIT 0x0001
26#define AUDSRV_FORMAT_OK 0x0002
27#define AUDSRV_SET_FORMAT 0x0003
28#define AUDSRV_PLAY_AUDIO 0x0004
29#define AUDSRV_WAIT_AUDIO 0x0005
30#define AUDSRV_STOP_AUDIO 0x0006
31#define AUDSRV_SET_VOLUME 0x0007
32#define AUDSRV_SET_THRESHOLD 0x0008
35#define AUDSRV_PLAY_CD 0x0009
36#define AUDSRV_STOP_CD 0x000a
37#define AUDSRV_GET_CDPOS 0x000b
38#define AUDSRV_GET_TRACKPOS 0x000c
39#define AUDSRV_GET_NUMTRACKS 0x000d
40#define AUDSRV_GET_TRACKOFFSET 0x000e
41#define AUDSRV_PAUSE_CD 0x0011
42#define AUDSRV_RESUME_CD 0x0012
43#define AUDSRV_PLAY_SECTORS 0x0013
44#define AUDSRV_GET_CD_STATUS 0x0014
45#define AUDSRV_GET_CD_TYPE 0x0015
47#define AUDSRV_INIT_ADPCM 0x0016
48#define AUDSRV_LOAD_ADPCM 0x0017
49#define AUDSRV_PLAY_ADPCM 0x0018
50#define AUDSRV_SET_ADPCM_VOL 0x0019
51#define AUDSRV_FREE_ADPCM 0x001c
52#define AUDSRV_IS_ADPCM_PLAYING 0x001d
54#define AUDSRV_AVAILABLE 0x001a
55#define AUDSRV_QUEUED 0x001b
57#define AUDSRV_FILLBUF_CALLBACK 0x0001
58#define AUDSRV_CDDA_CALLBACK 0x0002
61#define AUDSRV_ERR_NOERROR 0x0000
62#define AUDSRV_ERR_NOT_INITIALIZED 0x0001
63#define AUDSRV_ERR_RPC_FAILED 0x0002
64#define AUDSRV_ERR_FORMAT_NOT_SUPPORTED 0x0003
65#define AUDSRV_ERR_OUT_OF_MEMORY 0x0004
66#define AUDSRV_ERR_ARGS 0x0005
67#define AUDSRV_ERR_NO_DISC 0x0006
68#define AUDSRV_ERR_NO_MORE_CHANNELS 0x0007
86int audsrv_set_threshold(
int amount);
99int audsrv_adpcm_set_volume(
int ch,
int voll,
int volr);
101#define audsrv_play_adpcm(id) audsrv_ch_play_adpcm(-1, id)
106#define audsrv_IMPORTS_start DECLARE_IMPORT_TABLE(audsrv, 1, 4)
107#define audsrv_IMPORTS_end END_IMPORT_TABLE
109#define I_audsrv_init DECLARE_IMPORT( 4, audsrv_init)
110#define I_audsrv_quit DECLARE_IMPORT( 5, audsrv_quit)
113#define I_audsrv_format_ok DECLARE_IMPORT( 6, audsrv_format_ok)
114#define I_audsrv_set_format DECLARE_IMPORT( 7, audsrv_set_format)
115#define I_audsrv_wait_audio DECLARE_IMPORT( 8, audsrv_wait_audio)
116#define I_audsrv_play_audio DECLARE_IMPORT( 9, audsrv_play_audio)
117#define I_audsrv_stop_audio DECLARE_IMPORT(10, audsrv_stop_audio)
118#define I_audsrv_set_volume DECLARE_IMPORT(11, audsrv_set_volume)
121#define I_audsrv_play_cd DECLARE_IMPORT(12, audsrv_play_cd)
122#define I_audsrv_stop_cd DECLARE_IMPORT(13, audsrv_stop_cd)
123#define I_audsrv_set_threshold DECLARE_IMPORT(14, audsrv_set_threshold)
124#define I_audsrv_get_cdpos DECLARE_IMPORT(15, audsrv_get_cdpos)
125#define I_audsrv_get_trackpos DECLARE_IMPORT(16, audsrv_get_trackpos)
126#define I_audsrv_get_numtracks DECLARE_IMPORT(17, audsrv_get_numtracks)
127#define I_audsrv_get_track_offset DECLARE_IMPORT(18, audsrv_get_track_offset)
128#define I_audsrv_cd_pause DECLARE_IMPORT(19, audsrv_cd_pause)
129#define I_audsrv_cd_resume DECLARE_IMPORT(20, audsrv_cd_resume)
130#define I_audsrv_cd_play_sectors DECLARE_IMPORT(21, audsrv_cd_play_sectors)
131#define I_audsrv_get_cd_status DECLARE_IMPORT(22, audsrv_get_cd_status)
132#define I_audsrv_get_cd_type DECLARE_IMPORT(23, audsrv_get_cd_type)
134#define I_audsrv_adpcm_init DECLARE_IMPORT(24, audsrv_adpcm_init)
135#define I_audsrv_load_adpcm DECLARE_IMPORT(25, audsrv_load_adpcm)
136#define I_audsrv_play_adpcm I_audsrv_ch_play_adpcm
137#define I_audsrv_ch_play_adpcm DECLARE_IMPORT(26, audsrv_ch_play_adpcm)
138#define I_audsrv_adpcm_set_volume DECLARE_IMPORT(27, audsrv_adpcm_set_volume)
139#define I_audsrv_available DECLARE_IMPORT(28, audsrv_available)
140#define I_audsrv_queued DECLARE_IMPORT(29, audsrv_queued)
int audsrv_get_numtracks()
int audsrv_is_adpcm_playing(int ch, audsrv_adpcm_t *adpcm)
int audsrv_play_audio(const char *chunk, int bytes)
int audsrv_ch_play_adpcm(int ch, audsrv_adpcm_t *adpcm)
int audsrv_play_cd(int track)
int audsrv_get_trackpos()
int audsrv_load_adpcm(audsrv_adpcm_t *adpcm, void *buffer, int size)
int audsrv_set_volume(int volume)
int audsrv_wait_audio(int bytes)
int audsrv_get_track_offset(int track)
int audsrv_set_format(struct audsrv_fmt_t *fmt)
int audsrv_get_cd_status()
int audsrv_format_ok(int freq, int bits, int channels)
int audsrv_cd_play_sectors(int start, int end)