Holds a list of AudioBus instances. More...
#include <AudioBusList.hpp>
Public Member Functions | |
WASM | AudioBusList (const uint numberOfBuses) |
Creates an AudioBusList instance. | |
AudioBusList (AudioBus &audioBus) | |
Creates an AudioBusList instance with a single audio bus. | |
AudioBusList (AudioBuffer< float > &buffer) | |
Creates an AudioBusList instance with a single audio bus from an audio buffer. | |
AudioBusFormatList & | getFormat () |
Gets the formats of the audio buses. | |
WASM uint | getNumberOfBuses () const |
Gets the number of audio buses. | |
WASM AudioBus & | getBus (const uint busIndex) const |
Gets an audio bus by its index. | |
void | copyFrom (const AudioBusList &srcAudioBusList) |
Copies another AudioBusList instance. | |
AudioBusList (const AudioBusList &)=delete | |
AudioBusList & | operator= (const AudioBusList &)=delete |
Holds a list of AudioBus instances.
AudioBusList class.
switchboard::AudioBusList::AudioBusList | ( | const uint | numberOfBuses | ) |
Creates an AudioBusList instance.
Allocates enough memory to hold the AudioBus instances.
numberOfBuses | The number of audio buses. |
switchboard::AudioBusList::AudioBusList | ( | AudioBus & | audioBus | ) |
Creates an AudioBusList instance with a single audio bus.
audioBus | The audio bus. |
switchboard::AudioBusList::AudioBusList | ( | AudioBuffer< float > & | buffer | ) |
Creates an AudioBusList instance with a single audio bus from an audio buffer.
buffer | The audio buffer for the single audio bus. |
void switchboard::AudioBusList::copyFrom | ( | const AudioBusList & | srcAudioBusList | ) |
Copies another AudioBusList instance.
The number of buses has to match in both instances.
srcAudioBusList | The other AudioBusList instance where data is copied from. |
AudioBus & switchboard::AudioBusList::getBus | ( | const uint | busIndex | ) | const |
Gets an audio bus by its index.
busIndex | The index of the audio bus. |
AudioBusFormatList & switchboard::AudioBusList::getFormat | ( | ) |
Gets the formats of the audio buses.
uint switchboard::AudioBusList::getNumberOfBuses | ( | ) | const |
Gets the number of audio buses.