AudioStreamAlign.this

this(void * ptr, Flag!"Take" take)
No documentation available for this declaration.
this(int rate, gst.types.ClockTime alignmentThreshold, gst.types.ClockTime discontWait)

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.

alignment_threshold gives the tolerance in nanoseconds after which a timestamp difference is considered a discontinuity. Once detected, discont_wait nanoseconds have to pass without going below the threshold again until the output buffer is marked as a discontinuity. These can later be re-configured with [gstaudio.audio_stream_align.AudioStreamAlign.setAlignmentThreshold] and [gstaudio.audio_stream_align.AudioStreamAlign.setDiscontWait].

Parameters

ratea sample rate
alignmentThresholda alignment threshold in nanoseconds
discontWaitdiscont wait in nanoseconds

Returns

a new #GstAudioStreamAlign. free with [gstaudio.audio_stream_align.AudioStreamAlign.free].