Enum vst::channels::SpeakerArrangementType
source · pub enum SpeakerArrangementType {
Custom,
Empty,
Mono,
Stereo(StereoConfig, StereoChannel),
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(StereoConfig, StereoChannel)
Stereo channel. Contains type of stereo arrangement and speaker represented.
Surround(SurroundConfig)
Surround channel. Contains surround arrangement and target (cinema or music).
Implementations§
source§impl SpeakerArrangementType
impl SpeakerArrangementType
sourcepub fn is_speaker_type(&self) -> bool
pub fn is_speaker_type(&self) -> bool
Determine whether this channel is part of a surround speaker arrangement.
sourcepub fn is_left_stereo(&self) -> bool
pub fn is_left_stereo(&self) -> bool
Determine whether this channel is the left speaker in a stereo pair.
Trait Implementations§
source§impl Default for SpeakerArrangementType
impl Default for SpeakerArrangementType
source§fn default() -> SpeakerArrangementType
fn default() -> SpeakerArrangementType
Returns the “default value” for a type. Read more
source§impl From<ChannelProperties> for SpeakerArrangementType
impl From<ChannelProperties> for SpeakerArrangementType
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.
source§fn from(api: ChannelProperties) -> SpeakerArrangementType
fn from(api: ChannelProperties) -> SpeakerArrangementType
Converts to this type from the input type.
source§impl Into<SpeakerArrangementType> for SpeakerArrangementType
impl Into<SpeakerArrangementType> for SpeakerArrangementType
source§fn into(self) -> SpeakerArrangementType
fn into(self) -> SpeakerArrangementType
Convert to VST API arrangement type.