Switchboard SDK
|
Holds a list of AudioBus instances and allocates memory on the heap. More...
#include <AudioBusVector.hpp>
Public Member Functions | |
WASM | AudioBusVector (const uint numberOfBuses) |
Creates an AudioBusVector instance. | |
AudioBusVector (AudioBus &audioBus) | |
Creates an AudioBusVector instance with a single audio bus. | |
AudioBusVector (AudioBuffer< float > &buffer) | |
Creates an AudioBusVector instance with a single audio bus from an audio buffer. | |
WASM uint | getNumberOfBuses () const override |
Gets the number of audio buses. | |
WASM AudioBus & | getBus (const uint busIndex) const override |
Gets an audio bus by its index. | |
AudioBusFormatList & | getFormat () override |
Gets the formats of the audio buses. | |
Public Member Functions inherited from switchboard::AudioBusList | |
AudioBusList ()=default | |
Default constructor for AudioBusList. | |
virtual | ~AudioBusList ()=default |
Default destructor for AudioBusList. | |
void | copyFrom (const AudioBusList &srcAudioBusList) const |
Copies another AudioBusList instance. | |
void | clear () const |
Sets the content of all audio buses to zero. | |
AudioBusList (const AudioBusList &)=delete | |
AudioBusList & | operator= (const AudioBusList &)=delete |
Holds a list of AudioBus instances and allocates memory on the heap.
AudioBusVector class.
switchboard::AudioBusVector::AudioBusVector | ( | const uint | numberOfBuses | ) |
Creates an AudioBusVector instance.
Allocates enough memory on the heap to hold the AudioBus instances.
numberOfBuses | The number of audio buses. |
switchboard::AudioBusVector::AudioBusVector | ( | AudioBus & | audioBus | ) |
Creates an AudioBusVector instance with a single audio bus.
Allocates memory on the heap for one AudioBus instance.
audioBus | The audio bus. |
switchboard::AudioBusVector::AudioBusVector | ( | AudioBuffer< float > & | buffer | ) |
Creates an AudioBusVector instance with a single audio bus from an audio buffer.
Allocates memory on the heap.
buffer | The audio buffer for the single audio bus. |
|
overridevirtual |
Gets an audio bus by its index.
busIndex | The index of the audio bus. |
Implements switchboard::AudioBusList.
|
overridevirtual |
Gets the formats of the audio buses.
Implements switchboard::AudioBusList.
|
overridevirtual |
Gets the number of audio buses.
Implements switchboard::AudioBusList.