pub trait AudioTestSourceExt: IsA<AudioTestSource> + Sealed + 'static {
    // Provided methods
    fn freq(&self) -> f64 { ... }
    fn volume(&self) -> f64 { ... }
    fn set_freq(&self, freq: f64) { ... }
    fn set_volume(&self, volume: f64) { ... }
}
Expand description

Trait containing all AudioTestSource methods.

§Implementors

AudioTestSource

Provided Methods§

source

fn freq(&self) -> f64

Get the current frequency of self.

§Returns

The current frequency of self.

source

fn volume(&self) -> f64

Get the current volume of self.

§Returns

The current volume of self

source

fn set_freq(&self, freq: f64)

Lets you set the frequency applied on the track element

§freq

The frequency you want to apply on self

source

fn set_volume(&self, volume: f64)

Sets the volume of the test audio signal.

§volume

The volume you want to apply on self

Object Safety§

This trait is not object safe.

Implementors§