pub enum Device {
Show 16 variants Strip1, Strip2, Strip3, Strip4, Strip5, OutputA1, OutputA2, OutputA3, OutputA4, OutputA5, VirtualOutputB1, VirtualOutputB2, VirtualOutputB3, VirtualInput, VirtualInputAux, VirtualInput8,
}
Available on crate feature interface only.
Expand description

A device.

Variants§

§

Strip1

Input Strip 1. Available on all Voicemeeter versions.

§

Strip2

Input Strip 2. Available on all Voicemeeter versions.

§

Strip3

Input Strip 3. Available on Voicemeeter Banana and Potato.

§

Strip4

Input Strip 4. Available on Voicemeeter Potato.

§

Strip5

Input Strip 5. Available on Voicemeeter Potato.

§

OutputA1

Output A1. Available on all Voicemeeter versions.

§

OutputA2

Output A2. Available on all Voicemeeter versions.

§

OutputA3

Output A3. Available on Voicemeeter Banana and Potato.

§

OutputA4

Output A4. Available on Voicemeeter Potato.

§

OutputA5

Output A5. Available on Voicemeeter Potato.

§

VirtualOutputB1

Virtual Output B1. Available on all Voicemeeter versions.

§

VirtualOutputB2

Virtual Output B2. Available on Voicemeeter Banana and Potato.

§

VirtualOutputB3

Virtual Output B3. Available on Voicemeeter Potato.

§

VirtualInput

Virtual Input. Available on all Voicemeeter versions.

§

VirtualInputAux

Virtual Input Aux. Available on Voicemeeter Banana and Potato.

§

VirtualInput8

Virtual Input8. Available on Voicemeeter Potato.

Implementations§

source§

impl Device

source

pub const fn main( &self, program: &VoicemeeterApplication ) -> (Option<ChannelIndex>, Option<ChannelIndex>)

Get the ChannelIndex for this channel in the buffers when in main mode, if available in the current program.

source

pub const fn input( &self, program: &VoicemeeterApplication ) -> Option<ChannelIndex>

Get the ChannelIndex for this channel in the buffers when in input mode, if available in the current program.

source

pub const fn output( &self, program: &VoicemeeterApplication ) -> Option<ChannelIndex>

Get the ChannelIndex for this channel in the buffers when in output mode, if available in the current program.

source

pub const fn all() -> &'static [Self]

Get all channels available.

source

pub const fn as_strip_index( &self, program: &VoicemeeterApplication ) -> Option<ZIndex>

Get the strip index for this device in the current program.

source

pub const fn as_bus_index( &self, program: &VoicemeeterApplication ) -> Option<(ZIndex, &'static str)>

Get the bus index for this device in the current program.

source

pub fn is_strip(&self) -> bool

Check if this device is a strip

source

pub fn is_bus(&self) -> bool

Check if this device is a bus

Trait Implementations§

source§

impl BusIndex for Device

source§

fn into_bus_index( self, program: &VoicemeeterApplication ) -> Result<ZIndex, ParameterError>

Get the bus index
source§

impl Clone for Device

source§

fn clone(&self) -> Device

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Device

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Device

source§

fn eq(&self, other: &Device) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StripIndex for Device

source§

fn into_strip_index( self, program: &VoicemeeterApplication ) -> Result<ZIndex, ParameterError>

Get the strip index
source§

impl Copy for Device

source§

impl Eq for Device

source§

impl StructuralPartialEq for Device

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more