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;
}

Trait containing all AudioBaseSink methods.

Implementors

crate::AudioBaseSink, crate::AudioSink

Required methods

fn alignment_threshold(&self) -> ClockTime[src]

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

Returns

The current alignment threshold used by self.

fn discont_wait(&self) -> ClockTime[src]

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

Returns

The current discont wait used by self.

fn drift_tolerance(&self) -> i64[src]

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

Returns

The current drift tolerance used by self.

fn is_provide_clock(&self) -> bool[src]

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)[src]

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)[src]

Controls the sink’s alignment threshold.

alignment_threshold

the new alignment threshold in nanoseconds

fn set_discont_wait(&self, discont_wait: ClockTime)[src]

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)[src]

Controls the sink’s drift tolerance.

drift_tolerance

the new drift tolerance in microseconds

fn set_provide_clock(&self, provide: bool)[src]

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

provide

new state

fn buffer_time(&self) -> i64[src]

fn set_buffer_time(&self, buffer_time: i64)[src]

fn can_activate_pull(&self) -> bool[src]

fn set_can_activate_pull(&self, can_activate_pull: bool)[src]

fn latency_time(&self) -> i64[src]

fn set_latency_time(&self, latency_time: i64)[src]

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

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

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

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

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

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

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

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

Loading content...

Implementors

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

fn alignment_threshold(&self) -> ClockTime[src]

fn discont_wait(&self) -> ClockTime[src]

fn drift_tolerance(&self) -> i64[src]

fn is_provide_clock(&self) -> bool[src]

fn report_device_failure(&self)[src]

fn set_alignment_threshold(&self, alignment_threshold: ClockTime)[src]

fn set_discont_wait(&self, discont_wait: ClockTime)[src]

fn set_drift_tolerance(&self, drift_tolerance: i64)[src]

fn set_provide_clock(&self, provide: bool)[src]

fn buffer_time(&self) -> i64[src]

fn set_buffer_time(&self, buffer_time: i64)[src]

fn can_activate_pull(&self) -> bool[src]

fn set_can_activate_pull(&self, can_activate_pull: bool)[src]

fn latency_time(&self) -> i64[src]

fn set_latency_time(&self, latency_time: i64)[src]

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

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

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

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

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

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

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

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

Loading content...