gstaudio.audio_clock

Module for [AudioClock] class

Types 3

#GstAudioClock makes it easy for elements to implement a #GstClock, they simply need to provide a function that returns the current clock time.

This object is internally used to implement the clock in #GstAudioBaseSink.

Methods
GType _gType() @property
AudioClock self()Returns `this`, for use in `with` statements.
AudioClockGidBuilder builder()Get builder for [gstaudio.audio_clock.AudioClock] Returns: New builder object
gst.types.ClockTime adjust(gst.types.ClockTime time)Adjust time with the internal offset of the audio clock.
gst.types.ClockTime getTime()Report the time as returned by the #GstAudioClockGetTimeFunc without applying any offsets. Returns: the time as reported by the time function of the audio clock
void invalidate()Invalidate the clock function. Call this function when the provided #GstAudioClockGetTimeFunc cannot be called anymore, for example, when the user_data becomes invalid.
void reset(gst.types.ClockTime time)Inform clock that future calls to #GstAudioClockGetTimeFunc will return values starting from time. The clock will update an internal offset to make sure that future calls to internal_time will retu...
Constructors
this(void * ptr, Flag!"Take" take)
this(string name, gstaudio.types.AudioClockGetTimeFunc func)Create a new #GstAudioClock instance. Whenever the clock time should be calculated it will call func with userdata. When func returns #GSTCLOCKTIMENONE, the clock will return the last reported time.

Fluent builder for [gstaudio.audio_clock.AudioClock]

Methods