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

pub trait AudioBaseSinkExt: 'static {
    fn get_alignment_threshold(&self) -> ClockTime;
fn get_discont_wait(&self) -> ClockTime;
fn get_drift_tolerance(&self) -> i64;
fn get_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 get_property_buffer_time(&self) -> i64;
fn set_property_buffer_time(&self, buffer_time: i64);
fn get_property_can_activate_pull(&self) -> bool;
fn set_property_can_activate_pull(&self, can_activate_pull: bool);
fn get_property_latency_time(&self) -> i64;
fn set_property_latency_time(&self, latency_time: i64);
fn connect_property_alignment_threshold_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_can_activate_pull_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_discont_wait_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_drift_tolerance_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_latency_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_provide_clock_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_slave_method_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all AudioBaseSink methods.

Implementors

AudioBaseSink, AudioSink

Required methods

fn get_alignment_threshold(&self) -> ClockTime

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

Returns

The current alignment threshold used by self.

fn get_discont_wait(&self) -> ClockTime

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

Returns

The current discont wait used by self.

fn get_drift_tolerance(&self) -> i64

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

Returns

The current drift tolerance used by self.

fn get_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.

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.

fn set_alignment_threshold(&self, alignment_threshold: ClockTime)

Controls the sink's alignment threshold.

alignment_threshold

the new alignment threshold in nanoseconds

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

fn set_drift_tolerance(&self, drift_tolerance: i64)

Controls the sink's drift tolerance.

drift_tolerance

the new drift tolerance in microseconds

fn set_provide_clock(&self, provide: bool)

Controls whether self will provide a clock or not. If provide is true, gst::ElementExt::provide_clock will return a clock that reflects the datarate of self. If provide is false, gst::ElementExt::provide_clock will return NULL.

provide

new state

fn get_property_buffer_time(&self) -> i64

fn set_property_buffer_time(&self, buffer_time: i64)

fn get_property_can_activate_pull(&self) -> bool

fn set_property_can_activate_pull(&self, can_activate_pull: bool)

fn get_property_latency_time(&self) -> i64

fn set_property_latency_time(&self, latency_time: i64)

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

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

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

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

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

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

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

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

Loading content...

Implementors

impl<O: IsA<AudioBaseSink>> AudioBaseSinkExt for O[src]

Loading content...