Represents a stream of audio in one direction. More...
#include <AudioBus.hpp>
Public Member Functions | |
AudioBus (AudioBuffer< float > *buffer) | |
AudioBus constructor. | |
WASM AudioBuffer< float > * | getBuffer () |
Gets the audio buffer of the audio bus. | |
WASM void | setBuffer (AudioBuffer< float > *newBuffer) |
Sets the audio buffer of the audio bus. | |
WASM void | copyFrom (const AudioBus &srcAudioBus) |
Copies another AudioBus instance. | |
Public Attributes | |
AudioBuffer< float > * | buffer = nullptr |
The audio buffer of the audio bus. | |
Represents a stream of audio in one direction.
AudioBus class.
Multiple audio buses can be handled together by the AudioBusList class.
switchboard::AudioBus::AudioBus | ( | AudioBuffer< float > * | buffer | ) |
AudioBus constructor.
buffer | The audio buffer containing audio data. |
AudioBuffer< float > * switchboard::AudioBus::getBuffer | ( | ) |
Gets the audio buffer of the audio bus.
void switchboard::AudioBus::setBuffer | ( | AudioBuffer< float > * | newBuffer | ) |
Sets the audio buffer of the audio bus.
newBuffer | The new audio buffer to be set. |