VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_player_metadata_cbs Union Reference

Player metadata callbacks. More...

#include <vlc_player.h>

Data Fields

void(* on_momentary_loudness_changed )(vlc_tick_t date, double momentary_loudness, void *data)
 Called when the momentary loudness measurement have changed.
 
void(* on_loudness_changed )(vlc_tick_t date, const struct vlc_audio_loudness *loudness, void *data)
 Called when loudness measurements have changed.
 

Detailed Description

Player metadata callbacks.

Can be registered with vlc_player_AddMetadataListener().

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

Field Documentation

◆ on_loudness_changed

void(* vlc_player_metadata_cbs::on_loudness_changed) (vlc_tick_t date, const struct vlc_audio_loudness *loudness, void *data)

Called when loudness measurements have changed.

See also
VLC_PLAYER_METADATA_LOUDNESS_FULL

Only sent when audio is playing, approximately every 400ms (but can be higher, depending on the input sample size).

Parameters
dateAbsolute date of the measurement. It is most likely in the future (0 to 2seconds) depending on the audio output buffer size.
loudnessloudness measurement
dataopaque pointer set by vlc_player_AddMetadataListener()

Referenced by vlc_player_OnLoudnessEvent().

◆ on_momentary_loudness_changed

void(* vlc_player_metadata_cbs::on_momentary_loudness_changed) (vlc_tick_t date, double momentary_loudness, void *data)

Called when the momentary loudness measurement have changed.

See also
VLC_PLAYER_METADATA_LOUDNESS_MOMEMTARY

Only sent when audio is playing, approximately every 400ms (but can be higher, depending on the input sample size).

Parameters
dateAbsolute date of the measurement. It is most likely in the future (0 to 2seconds) depending on the audio output buffer size.
momentary_loudnessMomentary loudness
dataopaque pointer set by vlc_player_AddMetadataListener()

Referenced by vlc_player_OnLoudnessEvent().


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