VLC 4.0.0-dev
Loading...
Searching...
No Matches
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.
int aout_volume_SetFormat (aout_volume_t *vol, vlc_fourcc_t format)
 Selects the current sample format for software amplification.
void aout_volume_Delete (aout_volume_t *vol)
 Destroys a software amplifier.
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.

Function Documentation

◆ 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, and aout_volume::output_factor.

Referenced by vlc_aout_stream_Play().

◆ aout_volume_Delete()

◆ aout_volume_New()

◆ 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, and aout_volume::object.

Referenced by stream_CheckReady(), and vlc_aout_stream_New().

◆ aout_volume_SetVolume()

void aout_volume_SetVolume ( aout_volume_t * vol,
float factor )

◆ ReplayGainCallback()

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