Holds a list of AudioBusList instances.
More...
#include <AudioBusFormatList.hpp>
Holds a list of AudioBusList instances.
AudioBusFormatList class.
Represents formats of AudioBusList instances without the need for the audio data.
◆ AudioBusFormatList() [1/2]
switchboard::AudioBusFormatList::AudioBusFormatList |
( |
const uint |
numberOfBuses | ) |
|
Creates an AudioBusFormatList instance.
Allocates enough memory to hold the AudioBusFormat instances.
- Parameters
-
numberOfBuses | The number of audio bus formats handled by this instance. |
◆ AudioBusFormatList() [2/2]
switchboard::AudioBusFormatList::AudioBusFormatList |
( |
const std::vector< AudioBusFormat > & |
busFormats | ) |
|
◆ getBusFormat()
AudioBusFormat & switchboard::AudioBusFormatList::getBusFormat |
( |
const uint |
busIndex | ) |
const |
Returns the audio bus format for the specified index.
- Parameters
-
busIndex | The index of the audio bus. |
- Returns
- The AudioBusFormat for the bus index.
◆ getNumberOfBuses()
uint switchboard::AudioBusFormatList::getNumberOfBuses |
( |
| ) |
const |
Returns the number of audio bus formats.
- Returns
- The number of audio buses.
◆ isPartlySet()
bool switchboard::AudioBusFormatList::isPartlySet |
( |
| ) |
const |
Checks whether any of the audio bus formats are set.
- Returns
- True if any of the audio bus formats are defined, false otherwise.
◆ isSet()
bool switchboard::AudioBusFormatList::isSet |
( |
| ) |
const |
Checks whether all audio bus formats are set.
- Returns
- True if all audio bus formats are defined, false otherwise.
◆ matchBusFormats() [1/2]
Matches all bus formats in two AudioBusFormatList instances.
Finds the first defined bus format and requires the same bus format for all of the other buses. If none of the bus formats are defined, it returns with false.
- Parameters
-
busFormatList1 | The first bus format list in which the bus formats will be matched. |
busFormatList2 | The second bus format list in which the bus formats will be matched. |
- Returns
- True if the bus formats could be matched successfully, false otherwise.
◆ matchBusFormats() [2/2]
Matches all bus formats in an AudioBusFormatList instance.
Finds the first defined bus format and requires the same bus format for all of the other buses. If none of the bus formats are defined, it returns with false.
- Parameters
-
busFormats | The bus format list in which the bus formats will be matched. |
- Returns
- True if the bus formats could be matched successfully, false otherwise.
◆ operator!=()
Compares two audio bus format lists.
- Parameters
-
- Returns
- True if the stored audio bus formats are different, false otherwise.
◆ operator==()
Compares two audio bus format lists.
- Parameters
-
- Returns
- True if all audio bus formats match, false otherwise.
The documentation for this struct was generated from the following files:
- /Users/jenkins/.jenkins/workspace/Switchboard Developer Site - Production/SwitchboardSDK/src/all/AudioGraph/AudioBus/AudioBusFormatList.hpp
- /Users/jenkins/.jenkins/workspace/Switchboard Developer Site - Production/SwitchboardSDK/src/all/AudioGraph/AudioBus/AudioBusFormatList.cpp