StreamAlign
Object Hierarchy:
Gst.Audio.StreamAlign
Gst.Audio.StreamAlign
Gst.Audio.StreamAlign
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gst_audio_stream_align_get_type ()" ) ] [ Compact ] [ GIR ( name = "AudioStreamAlign" ) ] [ Version ( since = "1.14" ) ]public class StreamAlign
StreamAlign provides a helper object that helps tracking audio stream alignment and discontinuities, and
detects discontinuities if possible.
See StreamAlign for a description of its parameters and
process for the details of the processing.
Content:
Creation methods:
Methods:
public StreamAlign copy ()
Copy a GstAudioStreamAlign structure.
public void free ()
Free a GstAudioStreamAlign structure previously allocated with
StreamAlign or
copy .
public ClockTime get_alignment_threshold ()
Gets the currently configured alignment threshold.
public ClockTime get_discont_wait ()
Gets the currently configured discont wait.
public int get_rate ()
Gets the currently configured sample rate.
public uint64 get_samples_since_discont ()
Returns the number of samples that were processed since the last
discontinuity was detected.
public ClockTime get_timestamp_at_discont ()
Timestamp that was passed when a discontinuity was detected, i.e. the
first timestamp after the discontinuity.
public void mark_discont ()
Marks the next buffer as discontinuous and resets timestamp tracking.
public bool process (bool discont, ClockTime timestamp, uint n_samples, out ClockTime out_timestamp, out ClockTime out_duration, out uint64 out_sample_position)
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.
public void set_alignment_threshold (ClockTime alignment_threshold)
Sets alignment_treshold
as new alignment threshold for
the following processing.
public void set_discont_wait (ClockTime discont_wait)
Sets alignment_treshold
as new discont wait for the
following processing.
public void set_rate (int rate)
Sets rate
as new sample rate for the following
processing.