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