2001-06-03 01:25:43 +02:00
|
|
|
|
|
|
|
// prototypes:
|
|
|
|
//static ao_info_t info;
|
|
|
|
static int control(int cmd,int arg);
|
|
|
|
static int init(int rate,int channels,int format,int flags);
|
|
|
|
static void uninit();
|
|
|
|
static void reset();
|
|
|
|
static int get_space();
|
|
|
|
static int play(void* data,int len,int flags);
|
2001-11-24 06:21:22 +01:00
|
|
|
static float get_delay();
|
2001-06-05 20:40:44 +02:00
|
|
|
static void audio_pause();
|
|
|
|
static void audio_resume();
|
2001-06-03 01:25:43 +02:00
|
|
|
|
|
|
|
#define LIBAO_EXTERN(x) ao_functions_t audio_out_##x =\
|
|
|
|
{\
|
|
|
|
&info,\
|
|
|
|
control,\
|
|
|
|
init,\
|
|
|
|
uninit,\
|
|
|
|
reset,\
|
|
|
|
get_space,\
|
|
|
|
play,\
|
2001-06-05 20:40:44 +02:00
|
|
|
get_delay,\
|
|
|
|
audio_pause,\
|
|
|
|
audio_resume\
|
2001-06-03 01:25:43 +02:00
|
|
|
};
|
|
|
|
|