Trait gstreamer_audio::prelude::AudioBaseSinkExt[][src]

pub trait AudioBaseSinkExt: 'static {
Show 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

Required methods

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

Returns

The current alignment threshold used by self.

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

Returns

The current discont wait used by self.

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

Returns

The current drift tolerance used by self.

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.

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.

Controls the sink’s alignment threshold.

alignment_threshold

the new alignment threshold in nanoseconds

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

discont_wait

the new discont wait in nanoseconds

Controls the sink’s drift tolerance.

drift_tolerance

the new drift tolerance in microseconds

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

Implementors