VLC  4.0.0-dev
Data Structures | Functions
volume.c File Reference
Include dependency graph for volume.c:

Data Structures

struct  aout_volume
 

Functions

static int ReplayGainCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
 
aout_volume_taout_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)
 

Function Documentation

◆ aout_ReplayGainSelect()

static float aout_ReplayGainSelect ( vlc_object_t obj,
const char *  str,
const audio_replay_gain_t replay_gain 
)
static

◆ aout_volume_Amplify()

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, and unlikely.

Referenced by aout_DecPlay().

◆ aout_volume_Delete()

void aout_volume_Delete ( aout_volume_t vol)

◆ aout_volume_New()

aout_volume_t* aout_volume_New ( vlc_object_t parent,
const audio_replay_gain_t gain 
)

Creates a software amplifier.

References vlc_custom_create.

◆ aout_volume_SetFormat()

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().

◆ aout_volume_SetVolume()

void aout_volume_SetVolume ( aout_volume_t vol,
float  factor 
)

References aout_volume::output_factor, and unlikely.

Referenced by aout_GainNotify().

◆ ReplayGainCallback()

static int ReplayGainCallback ( vlc_object_t obj,
char const *  var,
vlc_value_t  oldval,
vlc_value_t  val,
void *  data 
)
static