[][src]Trait gstreamer_audio::StreamVolumeExt

pub trait StreamVolumeExt: 'static {
    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; }

Trait containing all StreamVolume methods.

Implementors

StreamVolume

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)

format

StreamVolumeFormat of val

val

Linear volume factor that should be set

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

Loading content...

Implementors

impl<O: IsA<StreamVolume>> StreamVolumeExt for O[src]

Loading content...