Trait gstreamer_audio::prelude::StreamVolumeExt [−][src]
pub trait StreamVolumeExt { fn get_mute(&self) -> bool; fn get_volume(&self, format: StreamVolumeFormat) -> f64; fn set_mute(&self, mute: bool); fn set_volume(&self, format: StreamVolumeFormat, val: f64); fn connect_property_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required Methods
fn get_mute(&self) -> bool
Returns
Returns true
if the stream is muted
fn get_volume(&self, format: StreamVolumeFormat) -> f64
format
StreamVolumeFormat
which should be returned
Returns
The current stream volume as linear factor
fn set_mute(&self, mute: bool)
mute
Mute state that should be set
fn set_volume(&self, format: StreamVolumeFormat, val: f64)
fn connect_property_mute_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_volume_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<StreamVolume> + IsA<Object>> StreamVolumeExt for O