Switchboard SDK
Loading...
Searching...
No Matches
switchboard::AudioBusFormatArray< N > Class Template Reference

Holds a list of AudioBusList instances on the stack. More...

#include <AudioBusFormatArray.hpp>

Inheritance diagram for switchboard::AudioBusFormatArray< N >:
switchboard::AudioBusFormatList

Public Member Functions

 AudioBusFormatArray ()=default
 Creates an AudioBusFormatArray instance.
 
uint getNumberOfBuses () const override
 Returns the number of audio bus formats.
 
AudioBusFormatgetBusFormat (const uint busIndex) const override
 Returns the audio bus format for the specified index.
 
AudioBusFormatListoperator= (const AudioBusFormatList &other) override
 Makes an audio bus format list equal to another audio bus format list.
 
- Public Member Functions inherited from switchboard::AudioBusFormatList
 AudioBusFormatList ()=default
 Default constructor for AudioBusFormatList.
 
virtual ~AudioBusFormatList ()=default
 Default destructor for AudioBusFormatList.
 
void reset ()
 Resets all audio bus formats stored in the instance.
 
bool isSet () const
 Checks whether all audio bus formats are set.
 
bool isPartlySet () const
 Checks whether any of the audio bus formats are set.
 
bool operator== (const AudioBusFormatList &other)
 Compares two audio bus format lists.
 
bool operator!= (const AudioBusFormatList &other)
 Compares two audio bus format lists.
 
std::string toString () const
 Returns a string representing the object.
 
 AudioBusFormatList (const AudioBusFormatList &)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from switchboard::AudioBusFormatList
static bool matchBusFormats (AudioBusFormatList &busFormats)
 Matches all bus formats in an AudioBusFormatList instance.
 
static bool matchBusFormats (AudioBusFormatList &busFormatList1, AudioBusFormatList &busFormatList2)
 Matches all bus formats in two AudioBusFormatList instances.
 

Detailed Description

template<std::size_t N>
class switchboard::AudioBusFormatArray< N >

Holds a list of AudioBusList instances on the stack.

AudioBusFormatArray class.

Represents formats of AudioBusList instances without the need for the audio data.

See also
AudioBusFormatList
AudioBusFormatVector

Constructor & Destructor Documentation

◆ AudioBusFormatArray()

template<std::size_t N>
switchboard::AudioBusFormatArray< N >::AudioBusFormatArray ( )
default

Creates an AudioBusFormatArray instance.

Allocates enough memory on the stack to hold the AudioBusFormat instances.

Member Function Documentation

◆ getBusFormat()

template<std::size_t N>
AudioBusFormat & switchboard::AudioBusFormatArray< N >::getBusFormat ( const uint busIndex) const
overridevirtual

Returns the audio bus format for the specified index.

Parameters
busIndexThe index of the audio bus.
Returns
The AudioBusFormat for the bus index.

Implements switchboard::AudioBusFormatList.

◆ getNumberOfBuses()

template<std::size_t N>
uint switchboard::AudioBusFormatArray< N >::getNumberOfBuses ( ) const
overridevirtual

Returns the number of audio bus formats.

Returns
The number of audio buses.

Implements switchboard::AudioBusFormatList.

◆ operator=()

template<std::size_t N>
AudioBusFormatList & switchboard::AudioBusFormatArray< N >::operator= ( const AudioBusFormatList & other)
overridevirtual

Makes an audio bus format list equal to another audio bus format list.

Parameters
otherThe other audio bus format list.

Implements switchboard::AudioBusFormatList.