VLC
3.0.15
|
Data Structures | |
struct | aout_volume |
Functions | |
static int | ReplayGainCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *) |
aout_volume_t * | aout_volume_New (vlc_object_t *parent, const audio_replay_gain_t *gain) |
Creates a software amplifier. More... | |
int | aout_volume_SetFormat (aout_volume_t *vol, vlc_fourcc_t format) |
Selects the current sample format for software amplification. More... | |
void | aout_volume_Delete (aout_volume_t *vol) |
Destroys a software amplifier. More... | |
void | aout_volume_SetVolume (aout_volume_t *vol, float factor) |
int | aout_volume_Amplify (aout_volume_t *vol, block_t *block) |
Applies replay gain and software volume to an audio buffer. More... | |
static float | aout_ReplayGainSelect (vlc_object_t *obj, const char *str, const audio_replay_gain_t *replay_gain) |
|
static |
int aout_volume_Amplify | ( | aout_volume_t * | vol, |
block_t * | block | ||
) |
Applies replay gain and software volume to an audio buffer.
References audio_volume::amplify, aout_volume::gain_factor, aout_volume::module, aout_volume::object, aout_volume::output_factor, unlikely, and vlc_atomic_load_float().
Referenced by aout_DecPlay().
void aout_volume_Delete | ( | aout_volume_t * | vol | ) |
Destroys a software amplifier.
References aout_volume::module, module_unneed, audio_volume::obj, aout_volume::object, vlc_common_members::parent, ReplayGainCallback(), var_DelCallback, and vlc_object_release.
Referenced by aout_DecDelete(), and aout_DecNew().
aout_volume_t* aout_volume_New | ( | vlc_object_t * | parent, |
const audio_replay_gain_t * | gain | ||
) |
Creates a software amplifier.
References vlc_custom_create.
int aout_volume_SetFormat | ( | aout_volume_t * | vol, |
vlc_fourcc_t | format | ||
) |
Selects the current sample format for software amplification.
References audio_volume::format, aout_volume::module, module_need, module_unneed, msg_Dbg, aout_volume::object, and unlikely.
Referenced by aout_CheckReady(), and aout_DecNew().
void aout_volume_SetVolume | ( | aout_volume_t * | vol, |
float | factor | ||
) |
References aout_volume::output_factor, and unlikely.
Referenced by aout_GainNotify().
|
static |
< No error
References aout_ReplayGainSelect(), aout_volume::gain_factor, vlc_value_t::psz_string, aout_volume::replay_gain, vlc_atomic_store_float(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by aout_volume_Delete().