Enum vst2::channels::SpeakerArrangementType [] [src]

pub enum SpeakerArrangementType {
    Custom,
    Empty,
    Mono,
    Stereo(StereoConfigStereoChannel),
    Surround(SurroundConfig),
}

Type representing how a channel is used. Only useful for some hosts.

Variants

Custom arrangement not specified to host.

Empty arrangement.

Mono channel.

Stereo channel. Contains type of stereo arrangement and speaker represented.

Surround channel. Contains surround arrangement and target (cinema or music).

Methods

impl SpeakerArrangementType
[src]

Determine whether this channel is part of a surround speaker arrangement.

Determine whether this channel is the left speaker in a stereo pair.

Trait Implementations

impl Default for SpeakerArrangementType
[src]

Returns the "default value" for a type. Read more

impl Into<SpeakerArrangementType> for SpeakerArrangementType
[src]

Convert to VST API arrangement type.

impl From<ChannelProperties> for SpeakerArrangementType
[src]

Convert the VST API equivalent struct into something more usable.

We implement From<ChannelProperties> as SpeakerArrangementType contains extra info about stereo speakers found in the channel flags.

Performs the conversion.