Type Alias spa_param_latency

Source
pub type spa_param_latency = c_uint;
Expand description

Properties for SPA_TYPE_OBJECT_ParamLatency

The latency indicates:

  • for playback: time delay between start of a graph cycle, and the rendering of the first sample of that cycle in audio output.

  • for capture: time delay between start of a graph cycle, and the first sample of that cycle having occurred in audio input.

For physical output/input, the latency is intended to correspond to the rendering/capture of physical audio, including hardware internal rendering delay.

The latency values are adjusted by \ref SPA_PROP_latencyOffsetNsec or SPA_PARAM_ProcessLatency, if present. (e.g. for ALSA this is used to adjust for the internal hardware latency).