pub trait AudioBaseSinkExt: IsA<AudioBaseSink> + Sealed + 'static {
Show 23 methods // Provided methods fn alignment_threshold(&self) -> ClockTime { ... } fn discont_wait(&self) -> ClockTime { ... } fn drift_tolerance(&self) -> i64 { ... } fn is_provide_clock(&self) -> bool { ... } fn report_device_failure(&self) { ... } fn set_alignment_threshold(&self, alignment_threshold: ClockTime) { ... } fn set_discont_wait(&self, discont_wait: ClockTime) { ... } fn set_drift_tolerance(&self, drift_tolerance: i64) { ... } fn set_provide_clock(&self, provide: bool) { ... } fn buffer_time(&self) -> i64 { ... } fn set_buffer_time(&self, buffer_time: i64) { ... } fn can_activate_pull(&self) -> bool { ... } fn set_can_activate_pull(&self, can_activate_pull: bool) { ... } fn latency_time(&self) -> i64 { ... } fn set_latency_time(&self, latency_time: i64) { ... } fn connect_alignment_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_can_activate_pull_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_discont_wait_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_drift_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all AudioBaseSink methods.

§Implementors

AudioBaseSink, AudioSink

Provided Methods§

source

fn alignment_threshold(&self) -> ClockTime

Get the current alignment threshold, in nanoseconds, used by self.

§Returns

The current alignment threshold used by self.

source

fn discont_wait(&self) -> ClockTime

Get the current discont wait, in nanoseconds, used by self.

§Returns

The current discont wait used by self.

source

fn drift_tolerance(&self) -> i64

Get the current drift tolerance, in microseconds, used by self.

§Returns

The current drift tolerance used by self.

source

fn is_provide_clock(&self) -> bool

Queries whether self will provide a clock or not. See also gst_audio_base_sink_set_provide_clock.

§Returns

true if self will provide a clock.

source

fn report_device_failure(&self)

Informs this base class that the audio output device has failed for some reason, causing a discontinuity (for example, because the device recovered from the error, but lost all contents of its ring buffer). This function is typically called by derived classes, and is useful for the custom slave method.

source

fn set_alignment_threshold(&self, alignment_threshold: ClockTime)

Controls the sink’s alignment threshold.

§alignment_threshold

the new alignment threshold in nanoseconds

source

fn set_discont_wait(&self, discont_wait: ClockTime)

Controls how long the sink will wait before creating a discontinuity.

§discont_wait

the new discont wait in nanoseconds

source

fn set_drift_tolerance(&self, drift_tolerance: i64)

Controls the sink’s drift tolerance.

§drift_tolerance

the new drift tolerance in microseconds

source

fn set_provide_clock(&self, provide: bool)

Controls whether self will provide a clock or not. If provide is true, [ElementExtManual::provide_clock()][crate::gst::prelude::ElementExtManual::provide_clock()] will return a clock that reflects the datarate of self. If provide is false, [ElementExtManual::provide_clock()][crate::gst::prelude::ElementExtManual::provide_clock()] will return NULL.

§provide

new state

source

fn buffer_time(&self) -> i64

source

fn set_buffer_time(&self, buffer_time: i64)

source

fn can_activate_pull(&self) -> bool

source

fn set_can_activate_pull(&self, can_activate_pull: bool)

source

fn latency_time(&self) -> i64

source

fn set_latency_time(&self, latency_time: i64)

source

fn connect_alignment_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_can_activate_pull_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_discont_wait_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_drift_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§