Switchboard SDK
|
Holds a list of AudioBus instances and allocates memory on the stack. More...
#include <AudioBusArray.hpp>
Public Member Functions | |
AudioBusArray () | |
Creates an AudioBusArray instance. | |
AudioBusArray (AudioBus &audioBus) | |
Creates an AudioBusArray instance with a single audio bus. | |
AudioBusArray (AudioBuffer< float > &buffer) | |
Creates an AudioBusArray instance with a single audio bus from an audio buffer. | |
uint | getNumberOfBuses () const override |
Gets the number of audio buses. | |
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 stack.
AudioBusArray class.
|
inline |
Creates an AudioBusArray instance.
Allocates enough memory on the stack to hold the AudioBus instances.
switchboard::AudioBusArray< N >::AudioBusArray | ( | AudioBus & | audioBus | ) |
Creates an AudioBusArray instance with a single audio bus.
Allocates memory on the stack for one AudioBus instance.
audioBus | The first audio bus in the AudioBusArray. |
switchboard::AudioBusArray< N >::AudioBusArray | ( | AudioBuffer< float > & | buffer | ) |
Creates an AudioBusArray instance with a single audio bus from an audio buffer.
Allocates memory on the stack.
buffer | The audio buffer for the first audio bus in the AudioBusArray. |
|
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.