[Mplayer-dev-eng] audio out drivers - libao2
Arpi
arpi at thot.banki.hu
Sun Jun 3 01:39:56 CEST 2001
Hi,
Just commited initial version of libao2
It's the same design as libvo, so easy to understand.
It has only few basic functions, and a general-purpose control() interface.
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);
static int get_delay();
the most important functions are get_space and get_delay.
get_space should return how many bytes can be written without blocking.
if driver can't do that, then it should return outburst if device
writeable (select()) or 0 is buffer is full.
get_delay() should return how many bytes are in the audio buffer not yet
played. if driver can't do that, then buffer size should be returned.
for template, use ao_null.c
for exaple, see ao_oss.c
don't forget to add your driver to Makefile and audio_out.c
A'rpi / Astral & ESP-team
--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu
_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng
More information about the MPlayer-dev-eng
mailing list