Mercurial > mplayer.hg
diff libao2/audio_out.h @ 3095:981a9e5118ce
interface to libao2 changed ao_plugin added
author | anders |
---|---|
date | Sat, 24 Nov 2001 05:21:22 +0000 |
parents | b24661a9924e |
children | ef2287ccc42b |
line wrap: on
line diff
--- a/libao2/audio_out.h Sat Nov 24 02:05:06 2001 +0000 +++ b/libao2/audio_out.h Sat Nov 24 05:21:22 2001 +0000 @@ -10,6 +10,7 @@ const char *comment; } ao_info_t; +/* interface towards mplayer and */ typedef struct ao_functions_s { ao_info_t *info; @@ -19,25 +20,32 @@ void (*reset)(); int (*get_space)(); int (*play)(void* data,int len,int flags); - int (*get_delay)(); + float (*get_delay)(); void (*pause)(); void (*resume)(); } ao_functions_t; +/* global data used by mplayer and plugins */ +typedef struct ao_data_s +{ + int samplerate; + int channels; + int format; + int bps; + int outburst; + int buffersize; + int pts; +} ao_data_t; + +extern char *ao_subdevice; +extern ao_data_t ao_data; + // prototypes extern char *audio_out_format_name(int format); // NULL terminated array of all drivers extern ao_functions_t* audio_out_drivers[]; -extern int ao_samplerate; -extern int ao_channels; -extern int ao_format; -extern int ao_bps; -extern int ao_outburst; -extern int ao_buffersize; -extern int ao_pts; -extern char *ao_subdevice; #define CONTROL_OK 1 #define CONTROL_TRUE 1