Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
switchboard::AudioBus Struct Reference

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.
 

Detailed Description

Represents a stream of audio in one direction.

AudioBus class.

Multiple audio buses can be handled together by the AudioBusList class.

Constructor & Destructor Documentation

◆ AudioBus()

switchboard::AudioBus::AudioBus ( AudioBuffer< float > *  buffer)

AudioBus constructor.

Parameters
bufferThe audio buffer containing audio data.

Member Function Documentation

◆ getBuffer()

AudioBuffer< float > * switchboard::AudioBus::getBuffer ( )

Gets the audio buffer of the audio bus.

Returns
The audio buffer object.

◆ setBuffer()

void switchboard::AudioBus::setBuffer ( AudioBuffer< float > *  newBuffer)

Sets the audio buffer of the audio bus.

Parameters
newBufferThe new audio buffer to be set.

The documentation for this struct was generated from the following files: