|
Switchboard Extension SDK
|
Represents a stream of audio in one direction. More...
#include <AudioBus.hpp>
Public Member Functions | |
| AudioBus ()=default | |
| Default audioBus constructor. | |
| AudioBus (AudioBuffer< float > *buffer) | |
| AudioBus constructor. | |
| AudioBusFormat | getFormat () const |
| Gets the format of the audio bus. | |
| void | setFormat (const AudioBusFormat &newFormat) |
| Sets the format of the audio bus. | |
| AudioBuffer< float > * | getBuffer () const |
| Gets the audio buffer of the audio bus. | |
| 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 | copyFrom (const AudioBus &srcAudioBus) |
| Copies another AudioBus instance. | |
| void | clear () |
| Sets the content of the audio bus to zero. | |
Public Attributes | |
| AudioBuffer< float > * | buffer = nullptr |
| The audio buffer that contains the audio data. | |
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 | ( | ) | const |
Gets the audio buffer of the audio bus.
|
nodiscard |
Gets the format of the audio bus.
|
nodiscard |
Checks if the audio bus is connected to another 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. |
| void switchboard::AudioBus::setFormat | ( | const AudioBusFormat & | newFormat | ) |
Sets the format of the audio bus.
| newFormat | The new AudioBusFormat to be set. |
| AudioBuffer<float>* switchboard::AudioBus::buffer = nullptr |
The audio buffer that contains the audio data.