Trait gstreamer_audio::prelude::AudioBaseSrcExt[][src]

pub trait AudioBaseSrcExt: 'static {
Show methods fn is_provide_clock(&self) -> bool;
fn set_provide_clock(&self, provide: bool);
fn actual_buffer_time(&self) -> i64;
fn actual_latency_time(&self) -> i64;
fn buffer_time(&self) -> i64;
fn set_buffer_time(&self, buffer_time: i64);
fn latency_time(&self) -> i64;
fn set_latency_time(&self, latency_time: i64);
fn connect_actual_buffer_time_notify<F: Fn(&Self) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_actual_latency_time_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_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 AudioBaseSrc methods.

Implementors

AudioBaseSrc, AudioSrc

Required methods

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

Returns

true if self will provide a clock.

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

Actual configured size of audio buffer in microseconds.

Actual configured audio latency in microseconds.

Implementors