Allocate a new #GstAudioStreamAlign with the given configuration. All processing happens according to sample rate rate, until gstaudio.audio_stream_align.AudioStreamAlign.setRate is called with a new rate. A negative rate can be used for reverse playback.
Copy a GstAudioStreamAlign structure.
Gets the currently configured alignment threshold.
Gets the currently configured discont wait.
Gets the currently configured sample rate.
Returns the number of samples that were processed since the last discontinuity was detected.
Timestamp that was passed when a discontinuity was detected, i.e. the first timestamp after the discontinuity.
Marks the next buffer as discontinuous and resets timestamp tracking.
Processes 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.
Sets alignment_treshold as new alignment threshold for the following processing.
Sets alignment_treshold as new discont wait for the following processing.
Sets rate as new sample rate for the following processing. If the sample rate differs this implicitly marks the next data as discontinuous.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
#GstAudioStreamAlign provides a helper object that helps tracking audio stream alignment and discontinuities, and detects discontinuities if possible.
See gstaudio.audio_stream_align.AudioStreamAlign.new_ for a description of its parameters and gstaudio.audio_stream_align.AudioStreamAlign.process for the details of the processing.