Trait gstreamer_audio::prelude::AudioBaseSinkExt
source · 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
Provided Methods§
sourcefn alignment_threshold(&self) -> ClockTime
fn alignment_threshold(&self) -> ClockTime
Get the current alignment threshold, in nanoseconds, used by self
.
§Returns
The current alignment threshold used by self
.
sourcefn discont_wait(&self) -> ClockTime
fn discont_wait(&self) -> ClockTime
Get the current discont wait, in nanoseconds, used by self
.
§Returns
The current discont wait used by self
.
sourcefn drift_tolerance(&self) -> i64
fn drift_tolerance(&self) -> i64
Get the current drift tolerance, in microseconds, used by self
.
§Returns
The current drift tolerance used by self
.
sourcefn is_provide_clock(&self) -> bool
fn is_provide_clock(&self) -> bool
sourcefn report_device_failure(&self)
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.
sourcefn set_alignment_threshold(&self, alignment_threshold: ClockTime)
fn set_alignment_threshold(&self, alignment_threshold: ClockTime)
Controls the sink’s alignment threshold.
§alignment_threshold
the new alignment threshold in nanoseconds
sourcefn set_discont_wait(&self, discont_wait: ClockTime)
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
sourcefn set_drift_tolerance(&self, drift_tolerance: i64)
fn set_drift_tolerance(&self, drift_tolerance: i64)
sourcefn set_provide_clock(&self, provide: bool)
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