pub trait TestClipExt: 'static {
Show 14 methods fn frequency(&self) -> f64;
fn volume(&self) -> f64;
fn vpattern(&self) -> VideoTestPattern;
fn is_muted(&self) -> bool;
fn set_frequency(&self, freq: f64);
fn set_mute(&self, mute: bool);
fn set_volume(&self, volume: f64);
fn set_vpattern(&self, vpattern: VideoTestPattern);
fn freq(&self) -> f64;
fn set_freq(&self, freq: f64);
fn connect_freq_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_mute_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_volume_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_vpattern_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}
Expand description

Trait containing all TestClip methods.

Implementors

TestClip

Required methods

Get the frequency self generates.

Returns

The frequency self generates. See audiotestsrc element.

Get the volume of the test audio signal applied on self.

Returns

The volume of the test audio signal applied on self.

Get the VideoTestPattern which is applied on self.

Returns

The VideoTestPattern which is applied on self.

Let you know if the audio track of self is muted or not.

Returns

Whether the audio track of self is muted or not.

Sets the frequency to generate. See audiotestsrc element.

freq

the frequency you want to use on self

Sets whether the audio track of this clip is muted or not.

mute

true to mute the audio track, false to unmute it

Sets the volume of the test audio signal.

volume

the volume of the audio signal you want to use on self

Sets which video pattern to display on self.

vpattern

the VideoTestPattern to use on self

The frequency to generate for audio track elements.

The frequency to generate for audio track elements.

Implementors