mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 09:59:44 +00:00
audio: untypedef af_info
This commit is contained in:
parent
0374ddb79d
commit
596e12fcb2
50
libaf/af.c
50
libaf/af.c
@ -25,31 +25,31 @@
|
||||
#include "af.h"
|
||||
|
||||
// Static list of filters
|
||||
extern af_info_t af_info_dummy;
|
||||
extern af_info_t af_info_delay;
|
||||
extern af_info_t af_info_channels;
|
||||
extern af_info_t af_info_format;
|
||||
extern af_info_t af_info_resample;
|
||||
extern af_info_t af_info_volume;
|
||||
extern af_info_t af_info_equalizer;
|
||||
extern af_info_t af_info_pan;
|
||||
extern af_info_t af_info_surround;
|
||||
extern af_info_t af_info_sub;
|
||||
extern af_info_t af_info_export;
|
||||
extern af_info_t af_info_volnorm;
|
||||
extern af_info_t af_info_extrastereo;
|
||||
extern af_info_t af_info_lavcac3enc;
|
||||
extern af_info_t af_info_lavcresample;
|
||||
extern af_info_t af_info_sweep;
|
||||
extern af_info_t af_info_hrtf;
|
||||
extern af_info_t af_info_ladspa;
|
||||
extern af_info_t af_info_center;
|
||||
extern af_info_t af_info_sinesuppress;
|
||||
extern af_info_t af_info_karaoke;
|
||||
extern af_info_t af_info_scaletempo;
|
||||
extern af_info_t af_info_bs2b;
|
||||
extern struct af_info af_info_dummy;
|
||||
extern struct af_info af_info_delay;
|
||||
extern struct af_info af_info_channels;
|
||||
extern struct af_info af_info_format;
|
||||
extern struct af_info af_info_resample;
|
||||
extern struct af_info af_info_volume;
|
||||
extern struct af_info af_info_equalizer;
|
||||
extern struct af_info af_info_pan;
|
||||
extern struct af_info af_info_surround;
|
||||
extern struct af_info af_info_sub;
|
||||
extern struct af_info af_info_export;
|
||||
extern struct af_info af_info_volnorm;
|
||||
extern struct af_info af_info_extrastereo;
|
||||
extern struct af_info af_info_lavcac3enc;
|
||||
extern struct af_info af_info_lavcresample;
|
||||
extern struct af_info af_info_sweep;
|
||||
extern struct af_info af_info_hrtf;
|
||||
extern struct af_info af_info_ladspa;
|
||||
extern struct af_info af_info_center;
|
||||
extern struct af_info af_info_sinesuppress;
|
||||
extern struct af_info af_info_karaoke;
|
||||
extern struct af_info af_info_scaletempo;
|
||||
extern struct af_info af_info_bs2b;
|
||||
|
||||
static af_info_t* filter_list[]={
|
||||
static struct af_info* filter_list[]={
|
||||
&af_info_dummy,
|
||||
&af_info_delay,
|
||||
&af_info_channels,
|
||||
@ -87,7 +87,7 @@ int* af_cpu_speed = NULL;
|
||||
|
||||
/* Find a filter in the static list of filters using it's name. This
|
||||
function is used internally */
|
||||
static af_info_t* af_find(char*name)
|
||||
static struct af_info* af_find(char*name)
|
||||
{
|
||||
int i=0;
|
||||
while(filter_list[i]){
|
||||
|
@ -53,20 +53,19 @@ struct mp_audio {
|
||||
|
||||
/* Audio filter information not specific for current instance, but for
|
||||
a specific filter */
|
||||
typedef struct af_info_s
|
||||
{
|
||||
struct af_info {
|
||||
const char *info;
|
||||
const char *name;
|
||||
const char *author;
|
||||
const char *comment;
|
||||
const int flags;
|
||||
int (*open)(struct af_instance_s* vf);
|
||||
} af_info_t;
|
||||
};
|
||||
|
||||
// Linked list of audio filters
|
||||
typedef struct af_instance_s
|
||||
{
|
||||
af_info_t* info;
|
||||
struct af_info* info;
|
||||
int (*control)(struct af_instance_s* af, int cmd, void* arg);
|
||||
void (*uninit)(struct af_instance_s* af);
|
||||
struct mp_audio* (*play)(struct af_instance_s* af, struct mp_audio* data);
|
||||
|
@ -264,7 +264,7 @@ static int af_open(af_instance_t *af)
|
||||
}
|
||||
|
||||
/// Description of this filter
|
||||
af_info_t af_info_bs2b = {
|
||||
struct af_info af_info_bs2b = {
|
||||
"Bauer stereophonic-to-binaural audio filter",
|
||||
"bs2b",
|
||||
"Andrew Savchenko",
|
||||
|
@ -119,7 +119,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_center = {
|
||||
struct af_info af_info_center = {
|
||||
"Audio filter for adding a center channel",
|
||||
"center",
|
||||
"Alex Beregszaszi",
|
||||
|
@ -296,7 +296,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_channels = {
|
||||
struct af_info af_info_channels = {
|
||||
"Insert or remove channels",
|
||||
"channels",
|
||||
"Anders",
|
||||
|
@ -190,7 +190,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_delay = {
|
||||
struct af_info af_info_delay = {
|
||||
"Delay audio filter",
|
||||
"delay",
|
||||
"Anders",
|
||||
|
@ -66,7 +66,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_dummy = {
|
||||
struct af_info af_info_dummy = {
|
||||
"dummy",
|
||||
"dummy",
|
||||
"Anders",
|
||||
|
@ -238,7 +238,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_equalizer = {
|
||||
struct af_info af_info_equalizer = {
|
||||
"Equalizer audio filter",
|
||||
"equalizer",
|
||||
"Anders",
|
||||
|
@ -263,7 +263,7 @@ static int af_open( af_instance_t* af )
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_export = {
|
||||
struct af_info af_info_export = {
|
||||
"Sound export filter",
|
||||
"export",
|
||||
"Anders; Gustavo Sverzut Barbieri <gustavo.barbieri@ic.unicamp.br>",
|
||||
|
@ -147,7 +147,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_extrastereo = {
|
||||
struct af_info af_info_extrastereo = {
|
||||
"Increase difference between audio channels",
|
||||
"extrastereo",
|
||||
"Alex Beregszaszi & Pierre Lombard",
|
||||
|
@ -325,7 +325,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_format = {
|
||||
struct af_info af_info_format = {
|
||||
"Sample format conversion",
|
||||
"format",
|
||||
"Anders",
|
||||
|
@ -660,7 +660,7 @@ static int af_open(af_instance_t* af)
|
||||
}
|
||||
|
||||
/* Description of this filter */
|
||||
af_info_t af_info_hrtf = {
|
||||
struct af_info af_info_hrtf = {
|
||||
"HRTF Headphone",
|
||||
"hrtf",
|
||||
"ylai",
|
||||
|
@ -88,7 +88,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_karaoke = {
|
||||
struct af_info af_info_karaoke = {
|
||||
"Simple karaoke/voice-removal audio filter",
|
||||
"karaoke",
|
||||
"Reynaldo H. Verdejo Pinochet",
|
||||
|
@ -102,7 +102,7 @@ static int af_ladspa_malloc_failed(char*);
|
||||
|
||||
/* Description */
|
||||
|
||||
af_info_t af_info_ladspa = {
|
||||
struct af_info af_info_ladspa = {
|
||||
"LADSPA plugin loader",
|
||||
"ladspa",
|
||||
"Ivo van Poorten",
|
||||
|
@ -322,7 +322,7 @@ static int af_open(af_instance_t* af){
|
||||
return AF_OK;
|
||||
}
|
||||
|
||||
af_info_t af_info_lavcac3enc = {
|
||||
struct af_info af_info_lavcac3enc = {
|
||||
"runtime encode to ac3 using libavcodec",
|
||||
"lavcac3enc",
|
||||
"Ulion",
|
||||
|
@ -203,7 +203,7 @@ static int af_open(af_instance_t* af){
|
||||
return AF_OK;
|
||||
}
|
||||
|
||||
af_info_t af_info_lavcresample = {
|
||||
struct af_info af_info_lavcresample = {
|
||||
"Sample frequency conversion using libavcodec",
|
||||
"lavcresample",
|
||||
"Michael Niedermayer",
|
||||
|
@ -200,7 +200,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_pan = {
|
||||
struct af_info af_info_pan = {
|
||||
"Panning audio filter",
|
||||
"pan",
|
||||
"Anders",
|
||||
|
@ -384,7 +384,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this plugin
|
||||
af_info_t af_info_resample = {
|
||||
struct af_info af_info_resample = {
|
||||
"Sample frequency conversion",
|
||||
"resample",
|
||||
"Anders",
|
||||
|
@ -571,7 +571,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_scaletempo = {
|
||||
struct af_info af_info_scaletempo = {
|
||||
"Scale audio tempo while maintaining pitch",
|
||||
"scaletempo",
|
||||
"Robert Juliano",
|
||||
|
@ -174,7 +174,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_sinesuppress = {
|
||||
struct af_info af_info_sinesuppress = {
|
||||
"Sine Suppress",
|
||||
"sinesuppress",
|
||||
"Michael Niedermayer",
|
||||
|
@ -178,7 +178,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_sub = {
|
||||
struct af_info af_info_sub = {
|
||||
"Audio filter for adding a sub-base channel",
|
||||
"sub",
|
||||
"Anders",
|
||||
|
@ -262,7 +262,7 @@ static int af_open(af_instance_t* af){
|
||||
return AF_OK;
|
||||
}
|
||||
|
||||
af_info_t af_info_surround =
|
||||
struct af_info af_info_surround =
|
||||
{
|
||||
"Surround decoder filter",
|
||||
"surround",
|
||||
|
@ -93,7 +93,7 @@ static int af_open(af_instance_t* af){
|
||||
return AF_OK;
|
||||
}
|
||||
|
||||
af_info_t af_info_sweep = {
|
||||
struct af_info af_info_sweep = {
|
||||
"sine sweep",
|
||||
"sweep",
|
||||
"Michael Niedermayer",
|
||||
|
@ -343,7 +343,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_volnorm = {
|
||||
struct af_info af_info_volnorm = {
|
||||
"Volume normalizer filter",
|
||||
"volnorm",
|
||||
"Alex Beregszaszi & Pierre Lombard",
|
||||
|
@ -216,7 +216,7 @@ static int af_open(af_instance_t* af){
|
||||
}
|
||||
|
||||
// Description of this filter
|
||||
af_info_t af_info_volume = {
|
||||
struct af_info af_info_volume = {
|
||||
"Volume control audio filter",
|
||||
"volume",
|
||||
"Anders",
|
||||
|
Loading…
Reference in New Issue
Block a user