Switchboard SDK
|
Holds a list of AudioBusList instances on the heap. More...
#include <AudioBusFormatVector.hpp>
Public Member Functions | |
AudioBusFormatVector (const uint numberOfBuses) | |
Creates an AudioBusFormatVector instance. | |
AudioBusFormatVector (const std::vector< AudioBusFormat > &busFormats) | |
Creates an AudioBusFormatVector instance from a vector of AudioBusFormat values. | |
uint | getNumberOfBuses () const override |
Returns the number of audio bus formats. | |
AudioBusFormat & | getBusFormat (const uint busIndex) const override |
Returns the audio bus format for the specified index. | |
AudioBusFormatList & | operator= (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. | |
Holds a list of AudioBusList instances on the heap.
AudioBusFormatVector class.
Represents formats of AudioBusList instances without the need for the audio data.
switchboard::AudioBusFormatVector::AudioBusFormatVector | ( | const uint | numberOfBuses | ) |
Creates an AudioBusFormatVector instance.
Allocates enough memory on the heap to hold the AudioBusFormat instances.
numberOfBuses | The number of audio bus formats handled by this instance. |
switchboard::AudioBusFormatVector::AudioBusFormatVector | ( | const std::vector< AudioBusFormat > & | busFormats | ) |
Creates an AudioBusFormatVector instance from a vector of AudioBusFormat values.
Allocates enough memory on the heap to hold the AudioBusFormat instances.
busFormats | The vector holding the AudioBusFormat values. |
|
overridevirtual |
Returns the audio bus format for the specified index.
busIndex | The index of the audio bus. |
Implements switchboard::AudioBusFormatList.
|
overridevirtual |
Returns the number of audio bus formats.
Implements switchboard::AudioBusFormatList.
|
overridevirtual |
Makes an audio bus format list equal to another audio bus format list.
other | The other audio bus format list. |
Implements switchboard::AudioBusFormatList.