mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 01:52:19 +00:00
0470bface7
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3108 b3059339-0415-0410-9bf9-f77b7e298cf2
32 lines
892 B
C
32 lines
892 B
C
/* functions supplied by plugins */
|
|
typedef struct ao_plugin_functions_s
|
|
{
|
|
ao_info_t *info;
|
|
int (*control)(int cmd,int arg);
|
|
int (*init)();
|
|
void (*uninit)();
|
|
void (*reset)();
|
|
int (*play)();
|
|
} ao_plugin_functions_t;
|
|
|
|
/* Global data for all audio plugins */
|
|
typedef struct ao_plugin_data_s
|
|
{
|
|
void* data; /* current data block read only ok to change */
|
|
int len; /* setup and current buffer length */
|
|
int rate; /* setup data rate */
|
|
int channels; /* setup number of channels */
|
|
int format; /* setup format */
|
|
double sz_mult; /* Buffer size multiplier */
|
|
double sz_fix; /* Fix (as in static) extra buffer size */
|
|
float delay_mult; /* Delay multiplier */
|
|
float delay_fix; /* Fix delay */
|
|
}ao_plugin_data_t;
|
|
|
|
extern ao_plugin_data_t ao_plugin_data;
|
|
|
|
//List of plugins
|
|
|
|
|
|
#define AOCONTROL_PLUGIN_SET_LEN 1
|