Trait gstreamer_audio::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; }

Trait containing all StreamVolume methods.

Implementors

StreamVolume

Required Methods

Returns

Returns true if the stream is muted

format

StreamVolumeFormat which should be returned

Returns

The current stream volume as linear factor

mute

Mute state that should be set

format

StreamVolumeFormat of val

val

Linear volume factor that should be set

Implementors