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
AudioClockGidBuilder builder() static nothrowGet builder for [gstaudio.audio_clock.AudioClock] Returns: New builder objectgst.types.ClockTime adjust(gst.types.ClockTime time) nothrowAdjust time with the internal offset of the audio clock.gst.types.ClockTime getTime() nothrowReport the time as returned by the #GstAudioClockGetTimeFunc without applying any offsets. Returns: the time as reported by the time function of the audio clockvoid invalidate() nothrowInvalidate 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) nothrowInform 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(string name, gstaudio.types.AudioClockGetTimeFunc func)Create a new #GstAudioClock instance. Whenever the clock time should be calculated it will call func with user_data. When func returns #GST_CLOCK_TIME_NONE, the clock will return the last reported ...Fluent builder implementation template for gstaudio.audio_clock.AudioClock
Fluent builder for gstaudio.audio_clock.AudioClock
Methods