11#include "AudioBuffer.hpp"
12#include "AudioBusFormat.hpp"
13#include <switchboard/export.h>
15namespace switchboard {
Provides an abstraction around raw audio buffers stored in memory.
Definition AudioBuffer.hpp:22
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.
void setBuffer(AudioBuffer< float > *newBuffer)
Sets 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.
AudioBus(AudioBuffer< float > *buffer)
AudioBus constructor.
AudioBuffer< float > * buffer
The audio buffer that contains the audio data.
Definition AudioBus.hpp:27
AudioBuffer< float > * getBuffer() const
Gets the audio buffer of the audio bus.
void copyFrom(const AudioBus &srcAudioBus)
Copies another AudioBus instance.