VLC 4.0.0-dev
|
Modules | |
Audio output modules | |
Audio formats | |
Audio meter API | |
Audio output volume | |
Files | |
file | vlc_aout.h |
Audio output modules interface. | |
Macros | |
#define | AOUT_MAX_ADVANCE_TIME (AOUT_MAX_PREPARE_TIME + VLC_TICK_FROM_SEC(1)) |
#define | AOUT_MAX_PREPARE_TIME VLC_TICK_FROM_SEC(2) |
#define | AOUT_MIN_PREPARE_TIME AOUT_MAX_PTS_ADVANCE |
#define | AOUT_MAX_PTS_ADVANCE VLC_TICK_FROM_MS(40) |
Maximum advance of actual audio playback time to coded PTS, above which downsampling will be performed. More... | |
#define | AOUT_MAX_PTS_DELAY VLC_TICK_FROM_MS(60) |
Maximum delay of actual audio playback time from coded PTS, above which upsampling will be performed. More... | |
#define | AOUT_MAX_RESAMPLING 10 |
#define | AOUT_FMTS_IDENTICAL(p_first, p_second) |
#define | AOUT_FMTS_SIMILAR(p_first, p_second) |
#define | AOUT_FMT_LINEAR(p_format) (aout_BitsPerSample((p_format)->i_format) != 0) |
#define | VLC_CODEC_SPDIFL VLC_FOURCC('s','p','d','i') |
#define | VLC_CODEC_SPDIFB VLC_FOURCC('s','p','d','b') |
#define | AOUT_FMT_SPDIF(p_format) |
#define | AOUT_FMT_HDMI(p_format) |
#define | AOUT_VAR_CHAN_UNSET 0 /* must be zero */ |
#define | AOUT_VAR_CHAN_STEREO 1 |
#define | AOUT_VAR_CHAN_RSTEREO 2 |
#define | AOUT_VAR_CHAN_LEFT 3 |
#define | AOUT_VAR_CHAN_RIGHT 4 |
#define | AOUT_VAR_CHAN_DOLBYS 5 |
#define | AOUT_VAR_CHAN_MONO 7 |
#define | AOUT_MIX_MODE_UNSET 0 |
#define | AOUT_MIX_MODE_STEREO 1 |
#define | AOUT_MIX_MODE_BINAURAL 2 |
#define | AOUT_MIX_MODE_4_0 3 |
#define | AOUT_MIX_MODE_5_1 4 |
#define | AOUT_MIX_MODE_7_1 5 |
#define | AOUT_SPDIF_SIZE 6144 |
#define | A52_FRAME_NB 1536 |
#define | AOUT_VOLUME_DEFAULT 256 |
#define | AOUT_VOLUME_MAX 512 |
Functions | |
float | aout_VolumeGet (audio_output_t *) |
Gets the volume of the audio output stream (independent of mute). More... | |
int | aout_VolumeSet (audio_output_t *, float) |
Sets the volume of the audio output stream. More... | |
int | aout_VolumeUpdate (audio_output_t *, int, float *) |
Raises the volume. More... | |
int | aout_MuteGet (audio_output_t *) |
Gets the audio output stream mute flag. More... | |
int | aout_MuteSet (audio_output_t *, bool) |
Sets the audio output stream mute flag. More... | |
char * | aout_DeviceGet (audio_output_t *) |
Gets the currently selected device. More... | |
int | aout_DeviceSet (audio_output_t *, const char *) |
Selects an audio output device. More... | |
int | aout_DevicesList (audio_output_t *, char ***, char ***) |
Enumerates possible audio output devices. More... | |
#define A52_FRAME_NB 1536 |
#define AOUT_FMT_HDMI | ( | p_format | ) |
#define AOUT_FMT_LINEAR | ( | p_format | ) | (aout_BitsPerSample((p_format)->i_format) != 0) |
#define AOUT_FMT_SPDIF | ( | p_format | ) |
#define AOUT_FMTS_IDENTICAL | ( | p_first, | |
p_second | |||
) |
#define AOUT_FMTS_SIMILAR | ( | p_first, | |
p_second | |||
) |
#define AOUT_MAX_ADVANCE_TIME (AOUT_MAX_PREPARE_TIME + VLC_TICK_FROM_SEC(1)) |
#define AOUT_MAX_PREPARE_TIME VLC_TICK_FROM_SEC(2) |
#define AOUT_MAX_PTS_ADVANCE VLC_TICK_FROM_MS(40) |
Maximum advance of actual audio playback time to coded PTS, above which downsampling will be performed.
#define AOUT_MAX_PTS_DELAY VLC_TICK_FROM_MS(60) |
Maximum delay of actual audio playback time from coded PTS, above which upsampling will be performed.
#define AOUT_MAX_RESAMPLING 10 |
#define AOUT_MIN_PREPARE_TIME AOUT_MAX_PTS_ADVANCE |
#define AOUT_MIX_MODE_4_0 3 |
#define AOUT_MIX_MODE_5_1 4 |
#define AOUT_MIX_MODE_7_1 5 |
#define AOUT_MIX_MODE_BINAURAL 2 |
#define AOUT_MIX_MODE_STEREO 1 |
#define AOUT_MIX_MODE_UNSET 0 |
#define AOUT_SPDIF_SIZE 6144 |
#define AOUT_VAR_CHAN_DOLBYS 5 |
#define AOUT_VAR_CHAN_LEFT 3 |
#define AOUT_VAR_CHAN_MONO 7 |
#define AOUT_VAR_CHAN_RIGHT 4 |
#define AOUT_VAR_CHAN_RSTEREO 2 |
#define AOUT_VAR_CHAN_STEREO 1 |
#define AOUT_VAR_CHAN_UNSET 0 /* must be zero */ |
#define AOUT_VOLUME_DEFAULT 256 |
#define AOUT_VOLUME_MAX 512 |
#define VLC_CODEC_SPDIFB VLC_FOURCC('s','p','d','b') |
#define VLC_CODEC_SPDIFL VLC_FOURCC('s','p','d','i') |
char * aout_DeviceGet | ( | audio_output_t * | aout | ) |
Gets the currently selected device.
References var_GetNonEmptyString().
int aout_DeviceSet | ( | audio_output_t * | aout, |
const char * | id | ||
) |
Selects an audio output device.
id | device ID to select, or NULL for the default device |
References aout_owner(), device_select, aout_owner_t::lock, vlc_mutex_lock(), and vlc_mutex_unlock().
int aout_DevicesList | ( | audio_output_t * | aout, |
char *** | ids, | ||
char *** | names | ||
) |
Enumerates possible audio output devices.
The function will heap-allocate two tables of heap-allocated strings; the caller is responsible for freeing all strings and both tables.
ids | pointer to a table of device identifiers [OUT] |
names | pointer to a table of device human-readable descriptions [OUT] |
References aout_owner(), aout_owner_t::count, aout_owner_t::dev, aout_dev::id, aout_owner_t::list, aout_owner_t::lock, aout_dev::name, strdup(), unlikely, vlc_alloc(), vlc_list_foreach, vlc_mutex_lock(), and vlc_mutex_unlock().
int aout_MuteGet | ( | audio_output_t * | aout | ) |
Gets the audio output stream mute flag.
References var_InheritBool().
Referenced by vlc_player_aout_IsMuted().
int aout_MuteSet | ( | audio_output_t * | aout, |
bool | mute | ||
) |
Sets the audio output stream mute flag.
References aout_owner(), aout_owner_t::lock, mute_set, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by vlc_player_aout_Mute().
float aout_VolumeGet | ( | audio_output_t * | aout | ) |
Gets the volume of the audio output stream (independent of mute).
References var_GetFloat().
Referenced by aout_VolumeUpdate(), vlc_player_aout_GetVolume(), and vlc_strfplayer().
int aout_VolumeSet | ( | audio_output_t * | aout, |
float | vol | ||
) |
Sets the volume of the audio output stream.
References aout_owner(), aout_owner_t::lock, vlc_mutex_lock(), vlc_mutex_unlock(), and volume_set.
Referenced by aout_VolumeUpdate(), and vlc_player_aout_SetVolume().
int aout_VolumeUpdate | ( | audio_output_t * | aout, |
int | value, | ||
float * | volp | ||
) |
Raises the volume.
value | how much to increase (> 0) or decrease (< 0) the volume |
volp | if non-NULL, will contain contain the resulting volume |
References AOUT_VOLUME_DEFAULT, aout_VolumeGet(), aout_VolumeSet(), and var_InheritFloat().
Referenced by ControlNav(), and vlc_player_aout_IncrementVolume().