Trait GenericSend

Source
pub trait GenericSend<'a, T: ProbablyMutable + 'a>: SendIntType {
Show 18 methods // Required methods fn parent_track(&self) -> &Track<'_, T>; fn index(&self) -> usize; fn new(track: &'a Track<'_, T>, index: usize) -> Self; // Provided methods fn get_info_value(&self, param: impl Into<String>) -> f64 { ... } fn is_mute(&self) -> bool { ... } fn phase_flipped(&self) -> bool { ... } fn is_mono(&self) -> bool { ... } fn volume(&self) -> Volume { ... } fn pan(&self) -> Pan { ... } fn pan_law(&self) -> PanLaw { ... } fn send_mode(&self) -> SendMode { ... } fn automation_mode(&self) -> AutomationMode { ... } fn source_channels(&self) -> Option<SendSourceChannels> { ... } fn dest_channels(&self) -> Option<SendDestChannels> { ... } fn midi_properties(&self) -> Option<SendMIDIProps> { ... } fn dest_track(&'a self) -> Option<Track<'_, Immutable>> { ... } fn source_track(&'a self) -> Option<Track<'_, Immutable>> { ... } fn get_envelope( &'a self, selector: impl Into<EnvelopeSelector>, ) -> Option<Envelope<'_, Track<'_, T>, T>> { ... }
}

Required Methods§

Source

fn parent_track(&self) -> &Track<'_, T>

Source

fn index(&self) -> usize

Source

fn new(track: &'a Track<'_, T>, index: usize) -> Self

Provided Methods§

Source

fn get_info_value(&self, param: impl Into<String>) -> f64

Core method to retrieve send properties. With probability of 99% you shouldn’t use it.

Source

fn is_mute(&self) -> bool

Source

fn phase_flipped(&self) -> bool

Phase flipped if true.

Source

fn is_mono(&self) -> bool

Note, that mono parameter is not equal to SendDestChannels and SendSourceChannels is_mono parameters.

Source

fn volume(&self) -> Volume

Source

fn pan(&self) -> Pan

Source

fn pan_law(&self) -> PanLaw

Source

fn send_mode(&self) -> SendMode

Source

fn automation_mode(&self) -> AutomationMode

Source

fn source_channels(&self) -> Option<SendSourceChannels>

If None returned — the audio is off.

Source

fn dest_channels(&self) -> Option<SendDestChannels>

Returns None if source_channels are None.

Source

fn midi_properties(&self) -> Option<SendMIDIProps>

If None is returned — MIDI is off.

Source

fn dest_track(&'a self) -> Option<Track<'_, Immutable>>

Source

fn source_track(&'a self) -> Option<Track<'_, Immutable>>

Source

fn get_envelope( &'a self, selector: impl Into<EnvelopeSelector>, ) -> Option<Envelope<'_, Track<'_, T>, T>>

Selector is either EnvelopeChunk or GUID.

In case of send it’s better to use chunk.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, T: ProbablyMutable> GenericSend<'a, T> for HardwareSend<'a, T>

Source§

impl<'a, T: ProbablyMutable> GenericSend<'a, T> for TrackReceive<'a, T>

Source§

impl<'a, T: ProbablyMutable> GenericSend<'a, T> for TrackSend<'a, T>