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

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

Variants§

§

Custom

Custom arrangement not specified to host.

§

Empty

Empty arrangement.

§

Mono

Mono channel.

§

Stereo(StereoConfigStereoChannel)

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

§

Surround(SurroundConfig)

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

Implementations§

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§

Returns the “default value” for a type. Read more

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.

Converts to this type from the input type.

Convert to VST API arrangement type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.