Represents a stream of audio in one direction.
More...
#include <AudioBus.hpp>
|
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.
◆ AudioBus()
switchboard::AudioBus::AudioBus |
( |
AudioBuffer< float > * | buffer | ) |
|
AudioBus constructor.
- Parameters
-
buffer | The audio buffer containing audio data. |
◆ getBuffer()
SB_WASM AudioBuffer< float > * switchboard::AudioBus::getBuffer |
( |
| ) |
const |
Gets the audio buffer of the audio bus.
- Returns
- The audio buffer object.
◆ getFormat()
Gets the format of the audio bus.
- Returns
- The AudioBusFormat instance describing the format of the audio bus.
◆ isConnected()
bool switchboard::AudioBus::isConnected |
( |
| ) |
const |
|
nodiscard |
Checks if the audio bus is connected to another audio bus.
- Returns
- True if the audio bus is connected, false otherwise.
◆ setBuffer()
SB_WASM void switchboard::AudioBus::setBuffer |
( |
AudioBuffer< float > * | newBuffer | ) |
|
Sets the audio buffer of the audio bus.
- Parameters
-
newBuffer | The new audio buffer to be set. |
◆ setFormat()
void switchboard::AudioBus::setFormat |
( |
const AudioBusFormat & | newFormat | ) |
|
Sets the format of the audio bus.
- Parameters
-
◆ buffer
AudioBuffer<float>* switchboard::AudioBus::buffer = nullptr |
The documentation for this struct was generated from the following file: