TracktionEngine
Public Member Functions | Public Attributes | List of all members
tracktion::engine::ChannelIndex Struct Reference

Describes a channel of a WaveInputDevice or WaveOutputDevice by specifying the channel index in the global device's audio buffer and the purpose as an AudioChannelSet::ChannelType e.g. More...

Public Member Functions

 ChannelIndex ()
 Creates a default, invalid ChannelIndex. More...
 
 ChannelIndex (int indexInDevice, juce::AudioChannelSet::ChannelType)
 Creates a ChannelIndex for a given index and a channel type. More...
 
bool operator== (const ChannelIndex &) const
 
bool operator!= (const ChannelIndex &) const
 

Public Attributes

int indexInDevice = -1
 
juce::AudioChannelSet::ChannelType channel = juce::AudioChannelSet::unknown
 

Detailed Description

Describes a channel of a WaveInputDevice or WaveOutputDevice by specifying the channel index in the global device's audio buffer and the purpose as an AudioChannelSet::ChannelType e.g.

left, right, leftSurround etc.

Constructor & Destructor Documentation

◆ ChannelIndex() [1/2]

tracktion::engine::ChannelIndex::ChannelIndex ( )

Creates a default, invalid ChannelIndex.

◆ ChannelIndex() [2/2]

tracktion::engine::ChannelIndex::ChannelIndex ( int  indexInDevice,
juce::AudioChannelSet::ChannelType   
)

Creates a ChannelIndex for a given index and a channel type.

Member Function Documentation

◆ operator==()

bool tracktion::engine::ChannelIndex::operator== ( const ChannelIndex ) const

◆ operator!=()

bool tracktion::engine::ChannelIndex::operator!= ( const ChannelIndex ) const

Member Data Documentation

◆ indexInDevice

int tracktion::engine::ChannelIndex::indexInDevice = -1

◆ channel

juce::AudioChannelSet::ChannelType tracktion::engine::ChannelIndex::channel = juce::AudioChannelSet::unknown

The documentation for this struct was generated from the following file: