Struct vst::api::ChannelProperties

source ·
#[repr(C)]
pub struct ChannelProperties { pub name: [u8; 64], pub flags: i32, pub arrangement_type: SpeakerArrangementType, pub short_name: [u8; 8], pub future: [u8; 48], }
Expand description

Information about a channel. Only some hosts use this information.

Fields§

§name: [u8; 64]

Channel name.

§flags: i32

Flags found in ChannelFlags.

§arrangement_type: SpeakerArrangementType

Type of speaker arrangement this channel is a part of.

§short_name: [u8; 8]

Name of channel (recommended: 6 characters + delimiter).

§future: [u8; 48]

Reserved for future use.

Trait Implementations§

Converts to this type from the input type.

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 the VST api equivalent of this structure.

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.