Since 1.14Since 1.14copyCopy a GstAudioStreamAlign structure.
a new GstAudio.AudioStreamAlign. free with gst_audio_stream_align_free.
Since 1.14freeSince 1.14get_Gets the currently configured alignment threshold.
The currently configured alignment threshold
Since 1.14get_Since 1.14get_Since 1.14get_Since 1.14get_Timestamp that was passed when a discontinuity was detected, i.e. the first timestamp after the discontinuity.
The last timestamp at when a discontinuity was detected
Since 1.14mark_Since 1.14processProcesses data with timestamp and n_samples, and returns the output
timestamp, duration and sample position together with a boolean to signal
whether a discontinuity was detected or not. All non-discontinuous data
will have perfect timestamps and durations.
A discontinuity is detected once the difference between the actual timestamp and the timestamp calculated from the sample count since the last discontinuity differs by more than the alignment threshold for a duration longer than discont wait.
Note: In reverse playback, every buffer is considered discontinuous in the context of buffer flags because the last sample of the previous buffer is discontinuous with the first sample of the current one. However for this function they are only considered discontinuous in reverse playback if the first sample of the previous buffer is discontinuous with the last sample of the current one.
if this data is considered to be discontinuous
a Gst.ClockTime of the start of the data
number of samples to process
true if a discontinuity was detected, false otherwise.
Since 1.14set_Sets alignment_treshold as new alignment threshold for the following processing.
a new alignment threshold
Since 1.14set_Sets alignment_treshold as new discont wait for the following processing.
a new discont wait
Since 1.14set_Staticnew
GstAudio.AudioStreamAlign provides a helper object that helps tracking audio stream alignment and discontinuities, and detects discontinuities if possible.
See
gst_audio_stream_align_new()for a description of its parameters andgst_audio_stream_align_process()for the details of the processing.Since
1.14