11#include "AudioBuffer.hpp"
12#include "AudioBusFormat.hpp"
14namespace switchboard {
Provides an abstraction around raw audio buffers stored in memory.
Definition AudioBuffer.hpp:21
SB_WASM void setBuffer(AudioBuffer< float > *newBuffer)
Sets the audio buffer of the audio bus.
bool isConnected() const
Checks if the audio bus is connected to another audio bus.
void setFormat(const AudioBusFormat &newFormat)
Sets the format of the audio bus.
SB_WASM AudioBuffer< float > * getBuffer() const
Gets the audio buffer of the audio bus.
AudioBus()=default
Default audioBus constructor.
AudioBusFormat getFormat() const
Gets the format of the audio bus.
void clear()
Sets the content of the audio bus to zero.
AudioBuffer< float > * buffer
The audio buffer that contains the audio data.
Definition AudioBus.hpp:28
SB_WASM void copyFrom(const AudioBus &srcAudioBus)
Copies another AudioBus instance.