VLC 4.0.0-dev
|
Data Structures | |
struct | vlc_player_aout_cbs |
Player aout callbacks. More... | |
Typedefs | |
typedef struct vlc_player_aout_listener_id | vlc_player_aout_listener_id |
Player aout listener opaque structure. More... | |
Functions | |
audio_output_t * | vlc_player_aout_Hold (vlc_player_t *player) |
Get the audio output. More... | |
void | vlc_player_aout_Reset (vlc_player_t *player) |
Reset the main audio output. More... | |
vlc_player_aout_listener_id * | vlc_player_aout_AddListener (vlc_player_t *player, const struct vlc_player_aout_cbs *cbs, void *cbs_data) |
Add a listener callback for audio output events. More... | |
void | vlc_player_aout_RemoveListener (vlc_player_t *player, vlc_player_aout_listener_id *listener_id) |
Remove a aout listener callback. More... | |
float | vlc_player_aout_GetVolume (vlc_player_t *player) |
Get the audio volume. More... | |
int | vlc_player_aout_SetVolume (vlc_player_t *player, float volume) |
Set the audio volume. More... | |
int | vlc_player_aout_IncrementVolume (vlc_player_t *player, int steps, float *result) |
Increment the audio volume. More... | |
static int | vlc_player_aout_DecrementVolume (vlc_player_t *player, int steps, float *result) |
Helper to decrement the audio volume. More... | |
int | vlc_player_aout_IsMuted (vlc_player_t *player) |
Check if the audio output is muted. More... | |
int | vlc_player_aout_Mute (vlc_player_t *player, bool mute) |
Mute or unmute the audio output. More... | |
static int | vlc_player_aout_ToggleMute (vlc_player_t *player) |
Helper to toggle the mute state. More... | |
int | vlc_player_aout_EnableFilter (vlc_player_t *player, const char *name, bool add) |
Enable or disable an audio filter. More... | |
typedef struct vlc_player_aout_listener_id vlc_player_aout_listener_id |
Player aout listener opaque structure.
This opaque structure is returned by vlc_player_aout_AddListener() and can be used to remove the listener via vlc_player_aout_RemoveListener().
vlc_player_aout_listener_id * vlc_player_aout_AddListener | ( | vlc_player_t * | player, |
const struct vlc_player_aout_cbs * | cbs, | ||
void * | cbs_data | ||
) |
Add a listener callback for audio output events.
player | player instance |
cbs | pointer to a vlc_player_aout_cbs structure, the structure must be valid during the lifetime of the player |
cbs_data | opaque pointer used by the callbacks |
References vlc_player_t::aout_listeners, vlc_player_t::aout_listeners_lock, vlc_player_aout_listener_id::cbs, vlc_player_aout_listener_id::cbs_data, vlc_player_aout_listener_id::node, vlc_list_append(), vlc_mutex_lock(), and vlc_mutex_unlock().
|
inlinestatic |
Helper to decrement the audio volume.
References vlc_player_aout_IncrementVolume().
int vlc_player_aout_EnableFilter | ( | vlc_player_t * | player, |
const char * | name, | ||
bool | add | ||
) |
Enable or disable an audio filter.
References aout_EnableFilter(), aout_Release(), name, and vlc_player_aout_Hold().
float vlc_player_aout_GetVolume | ( | vlc_player_t * | player | ) |
Get the audio volume.
player | player instance |
References aout_Release(), aout_VolumeGet(), and vlc_player_aout_Hold().
Referenced by vlc_player_osd_Volume().
audio_output_t * vlc_player_aout_Hold | ( | vlc_player_t * | player | ) |
Get the audio output.
player | player instance |
References input_resource_HoldAout(), and vlc_player_t::resource.
Referenced by vlc_player_AddMetadataLoudnessListener(), vlc_player_aout_AddCallbacks(), vlc_player_aout_DelCallbacks(), vlc_player_aout_EnableFilter(), vlc_player_aout_GetVolume(), vlc_player_aout_IncrementVolume(), vlc_player_aout_IsMuted(), vlc_player_aout_Mute(), vlc_player_aout_SetVolume(), vlc_player_RemoveMetadataLoudnessListener(), and vlc_strfplayer().
int vlc_player_aout_IncrementVolume | ( | vlc_player_t * | player, |
int | steps, | ||
float * | result | ||
) |
Increment the audio volume.
player | player instance |
steps | number of "volume-step" |
result | pointer to store the resulting volume (can be NULL) |
References aout_Release(), aout_VolumeUpdate(), and vlc_player_aout_Hold().
Referenced by vlc_player_aout_DecrementVolume().
int vlc_player_aout_IsMuted | ( | vlc_player_t * | player | ) |
Check if the audio output is muted.
player | player instance |
References aout_MuteGet(), aout_Release(), and vlc_player_aout_Hold().
Referenced by vlc_player_aout_ToggleMute(), and vlc_player_osd_Volume().
int vlc_player_aout_Mute | ( | vlc_player_t * | player, |
bool | mute | ||
) |
Mute or unmute the audio output.
player | player instance |
mute | true to mute |
References aout_MuteSet(), aout_Release(), and vlc_player_aout_Hold().
Referenced by vlc_player_aout_ToggleMute().
void vlc_player_aout_RemoveListener | ( | vlc_player_t * | player, |
vlc_player_aout_listener_id * | listener_id | ||
) |
Remove a aout listener callback.
player | player instance |
listener_id | listener id returned by vlc_player_aout_AddListener() |
References vlc_player_t::aout_listeners_lock, vlc_player_aout_listener_id::node, vlc_list_remove(), vlc_mutex_lock(), and vlc_mutex_unlock().
void vlc_player_aout_Reset | ( | vlc_player_t * | player | ) |
Reset the main audio output.
player | player instance |
References input_resource_ResetAout(), vlc_player_t::resource, vlc_player_aout_Deinit(), and vlc_player_aout_Init().
int vlc_player_aout_SetVolume | ( | vlc_player_t * | player, |
float | volume | ||
) |
Set the audio volume.
player | player instance |
volume | volume in the range [0;2.f] |
References aout_Release(), aout_VolumeSet(), and vlc_player_aout_Hold().
|
inlinestatic |
Helper to toggle the mute state.
References vlc_player_aout_IsMuted(), and vlc_player_aout_Mute().