VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_player_aout_cbs Struct Reference

Player aout callbacks. More...

#include <vlc_player.h>

Data Fields

void(* on_volume_changed )(audio_output_t *aout, float new_volume, void *data)
 Called when the volume has changed.
 
void(* on_mute_changed )(audio_output_t *aout, bool new_muted, void *data)
 Called when the mute state has changed.
 
void(* on_device_changed )(audio_output_t *aout, const char *device, void *data)
 Called when the audio device has changed.
 

Detailed Description

Player aout callbacks.

Can be registered with vlc_player_aout_AddListener().

Warning
To avoid deadlocks, users should never call audio_output_t and vlc_player_t functions from these callbacks.

Field Documentation

◆ on_device_changed

void(* vlc_player_aout_cbs::on_device_changed) (audio_output_t *aout, const char *device, void *data)

Called when the audio device has changed.

Parameters
aoutthe main aout of the player
devicethe device name
dataopaque pointer set by vlc_player_aout_AddListener()

◆ on_mute_changed

void(* vlc_player_aout_cbs::on_mute_changed) (audio_output_t *aout, bool new_muted, void *data)

Called when the mute state has changed.

See also
vlc_player_aout_Mute()
Parameters
aoutthe main aout of the player
new_mutetrue if muted
dataopaque pointer set by vlc_player_aout_AddListener()

◆ on_volume_changed

void(* vlc_player_aout_cbs::on_volume_changed) (audio_output_t *aout, float new_volume, void *data)

Called when the volume has changed.

See also
vlc_player_aout_SetVolume()
Parameters
aoutthe main aout of the player
new_volumevolume in the range [0;2.f]
dataopaque pointer set by vlc_player_aout_AddListener()

The documentation for this struct was generated from the following file: