VLC 4.0.0-dev
Loading...
Searching...
No Matches
Audio filters

Data Structures

struct  aout_filters_cfg_t
 

Macros

#define AOUT_CHAN_REMAP_INIT
 
#define AOUT_FILTERS_CFG_INIT
 
#define aout_FiltersNew(o, inf, outf, remap)    aout_FiltersNew(VLC_OBJECT(o),inf,outf,remap)
 
#define aout_FiltersDelete(o, f)    aout_FiltersDelete(VLC_OBJECT(o),f)
 

Typedefs

typedef struct aout_filters aout_filters_t
 

Enumerations

enum  vlc_chan_order_idx_t {
  AOUT_CHANIDX_DISABLE = -1 , AOUT_CHANIDX_LEFT , AOUT_CHANIDX_RIGHT , AOUT_CHANIDX_MIDDLELEFT ,
  AOUT_CHANIDX_MIDDLERIGHT , AOUT_CHANIDX_REARLEFT , AOUT_CHANIDX_REARRIGHT , AOUT_CHANIDX_REARCENTER ,
  AOUT_CHANIDX_CENTER , AOUT_CHANIDX_LFE , AOUT_CHANIDX_MAX
}
 

Functions

int aout_EnableFilter (audio_output_t *aout, const char *name, bool add)
 Enable or disable an audio filter ("audio-filter")
 
aout_filters_taout_FiltersNew (vlc_object_t *, const audio_sample_format_t *, const audio_sample_format_t *, const aout_filters_cfg_t *cfg)
 
void aout_FiltersDelete (vlc_object_t *, aout_filters_t *)
 Destroys a chain of audio filters.
 
bool aout_FiltersAdjustResampling (aout_filters_t *, int)
 
block_taout_FiltersPlay (aout_filters_t *, block_t *, float rate)
 
block_taout_FiltersDrain (aout_filters_t *)
 
void aout_FiltersFlush (aout_filters_t *)
 
void aout_FiltersChangeViewpoint (aout_filters_t *, const vlc_viewpoint_t *vp)
 
vout_thread_taout_filter_GetVout (filter_t *, const video_format_t *)
 Create a vout from an "visualization" audio filter.
 

Detailed Description

Macro Definition Documentation

◆ AOUT_CHAN_REMAP_INIT

#define AOUT_CHAN_REMAP_INIT
Value:
{ \
}
@ AOUT_CHANIDX_CENTER
Definition vlc_aout.h:590
@ AOUT_CHANIDX_MIDDLELEFT
Definition vlc_aout.h:585
@ AOUT_CHANIDX_MIDDLERIGHT
Definition vlc_aout.h:586
@ AOUT_CHANIDX_RIGHT
Definition vlc_aout.h:584
@ AOUT_CHANIDX_LFE
Definition vlc_aout.h:591
@ AOUT_CHANIDX_LEFT
Definition vlc_aout.h:583
@ AOUT_CHANIDX_REARLEFT
Definition vlc_aout.h:587
@ AOUT_CHANIDX_REARRIGHT
Definition vlc_aout.h:588
@ AOUT_CHANIDX_REARCENTER
Definition vlc_aout.h:589

◆ AOUT_FILTERS_CFG_INIT

#define AOUT_FILTERS_CFG_INIT
Value:
{ .remap = AOUT_CHAN_REMAP_INIT, \
.headphones = false, \
};
#define AOUT_CHAN_REMAP_INIT
Definition vlc_aout.h:597
Definition vlc_aout.h:610

◆ aout_FiltersDelete

#define aout_FiltersDelete (   o,
 
)     aout_FiltersDelete(VLC_OBJECT(o),f)

◆ aout_FiltersNew

#define aout_FiltersNew (   o,
  inf,
  outf,
  remap 
)     aout_FiltersNew(VLC_OBJECT(o),inf,outf,remap)

Typedef Documentation

◆ aout_filters_t

typedef struct aout_filters aout_filters_t

Enumeration Type Documentation

◆ vlc_chan_order_idx_t

Enumerator
AOUT_CHANIDX_DISABLE 
AOUT_CHANIDX_LEFT 
AOUT_CHANIDX_RIGHT 
AOUT_CHANIDX_MIDDLELEFT 
AOUT_CHANIDX_MIDDLERIGHT 
AOUT_CHANIDX_REARLEFT 
AOUT_CHANIDX_REARRIGHT 
AOUT_CHANIDX_REARCENTER 
AOUT_CHANIDX_CENTER 
AOUT_CHANIDX_LFE 
AOUT_CHANIDX_MAX 

Function Documentation

◆ aout_EnableFilter()

int aout_EnableFilter ( audio_output_t aout,
const char *  name,
bool  add 
)

Enable or disable an audio filter ("audio-filter")

Parameters
aouta valid audio output
namea valid filter name
addtrue to add the filter, false to remove it
Returns
0 on success, non-zero on failure.

References FilterOrder(), p, psz_name, unlikely, var_GetString(), var_SetString(), VLC_EGENERIC, VLC_ENOMEM, and VLC_SUCCESS.

Referenced by vlc_player_aout_EnableFilter().

◆ aout_filter_GetVout()

vout_thread_t * aout_filter_GetVout ( filter_t filter,
const video_format_t fmt 
)

Create a vout from an "visualization" audio filter.

Warning
Can only be called once, from the probe function (Open).
Returns
a valid vout or NULL in case of error, the returned vout should not be freed via vout_Close().

References AUDIO_ES, filter_owner_sys::clock, filter_owner_sys::clock_source, filter_t::owner, filter_owner_t::sys, unlikely, video_format_AdjustColorSpace(), vlc_clock_CreateSlave(), vlc_clock_Delete(), vlc_clock_Lock(), vlc_clock_Unlock(), VLC_OBJECT, filter_owner_sys::vout, vout_configuration_t::vout, vout_Close(), vout_Create(), and vout_Request().

◆ aout_FiltersAdjustResampling()

bool aout_FiltersAdjustResampling ( aout_filters_t filters,
int  adjust 
)

◆ aout_FiltersChangeViewpoint()

void aout_FiltersChangeViewpoint ( aout_filters_t filters,
const vlc_viewpoint_t vp 
)

◆ aout_FiltersDelete()

void aout_FiltersDelete ( vlc_object_t obj,
aout_filters_t filters 
)

Destroys a chain of audio filters.

Parameters
objobject used with aout_FiltersNew()
filterschain to be destroyed

References aout_FiltersPipelineDestroy(), aout_filters::count, aout_filter::f, aout_filters::resampler, aout_filters::tab, var_DelCallback(), and VisualizationCallback().

◆ aout_FiltersDrain()

◆ aout_FiltersFlush()

◆ aout_FiltersNew()

aout_filters_t * aout_FiltersNew ( vlc_object_t ,
const audio_sample_format_t ,
const audio_sample_format_t ,
const aout_filters_cfg_t cfg 
)

◆ aout_FiltersPlay()