Provides a simplified interface for AudioSourceNode which is useful when only a single bus is supported by the audio source. More...
#include <SingleBusAudioSourceNode.hpp>
Public Member Functions | |
virtual bool | setBusFormat (AudioBusFormat &busFormat)=0 |
Sets bus format. | |
virtual bool | produce (AudioBus &bus)=0 |
Produces audio data in the given bus. | |
bool | setNumberOfBuses (const uint numberOfBuses) override |
Sets number of buses. | |
bool | setBusFormats (AudioBusFormatList &busFormats) override |
Sets bus formats. | |
bool | produce (AudioBusList &buses) override |
Produces audio data in the given buses. | |
virtual bool | setNumberOfBuses (const uint numberOfBuses)=0 |
Sets number of buses. | |
virtual bool | setBusFormats (AudioBusFormatList &busFormats)=0 |
Sets bus formats. | |
virtual bool | produce (AudioBusList &buses)=0 |
Produces audio data in the given buses. | |
![]() | |
virtual | ~AudioNode ()=default |
AudioNode virtual destructor. | |
const std::string & | getType () const |
Gets the type of the audio node. | |
virtual const std::string | getDisplayName () const |
Gets the display name of the audio node. | |
Additional Inherited Members | |
![]() | |
std::string | name |
The name of the audio node. | |
![]() | |
std::string | type |
Provides a simplified interface for AudioSourceNode which is useful when only a single bus is supported by the audio source.
SingleBusAudioSourceNode class.
|
pure virtual |
Produces audio data in the given bus.
Should be overridden by subclasses.
bus | The bus that should be filled with audio data. |
Implemented in switchboard::AudioPlayerNode, switchboard::PipeSourceNode, switchboard::SineGeneratorNode, and switchboard::WhiteNoiseGeneratorNode.
|
overridevirtual |
Produces audio data in the given buses.
Should be overridden by subclasses.
buses | The buses that should be filled with audio data. |
Implements switchboard::AudioSourceNode.
|
pure virtual |
Sets bus format.
Should be overridden by subclasses.
busFormat | The bus format to set. |
Implemented in switchboard::AudioPlayerNode, switchboard::PipeSourceNode, switchboard::SineGeneratorNode, and switchboard::WhiteNoiseGeneratorNode.
|
overridevirtual |
Sets bus formats.
Should be overridden by subclasses.
busFormats | The bus formats to set. |
Implements switchboard::AudioSourceNode.
|
overridevirtual |
Sets number of buses.
Should be overridden by subclasses.
numberOfBuses | The number of buses to set. |
Implements switchboard::AudioSourceNode.