Switchboard SDK
|
Encapsulates a SingleBusAudioSourceNode and provides environment for it with specified sample rate. More...
#include <ResampledSourceNode.hpp>
Public Member Functions | |
ResampledSourceNode () | |
ResampledSourceNode constructor. | |
void | setSourceNode (SingleBusAudioSourceNode *sourceNode) |
Sets the internal source node for the ResampledSourceNode (the sample rate of the encapsulated source node). | |
uint | getInternalSampleRate () const |
Returns the internally set sample rate for the source node. | |
void | setInternalSampleRate (const uint internalSampleRate) |
Sets the internal sample rate for the encapsulated source node (the sample rate of the encapsulated source node). | |
bool | setBusFormat (AudioBusFormat &busFormat) override |
Sets bus format. | |
bool | produce (AudioBus &bus) override |
Produces audio data in the given bus. | |
Public Member Functions inherited from switchboard::SingleBusAudioSourceNode | |
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. | |
Public Member Functions inherited from switchboard::AudioNode | |
AudioNode () | |
AudioNode constructor. | |
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. | |
virtual std::vector< std::unique_ptr< Parameter > > & | getParameters () |
Gets the parameters of the audio node. | |
virtual Parameter * | getParameter (const std::string &name) |
Gets the parameter with the given name. | |
Additional Inherited Members | |
Public Attributes inherited from switchboard::AudioNode | |
std::string | name |
The name of the audio node. | |
Protected Attributes inherited from switchboard::AudioNode | |
std::string | type |
std::vector< std::unique_ptr< Parameter > > | parameters |
Encapsulates a SingleBusAudioSourceNode and provides environment for it with specified sample rate.
ResampledSourceNode class.
uint switchboard::ResampledSourceNode::getInternalSampleRate | ( | ) | const |
Returns the internally set sample rate for the source node.
|
overridevirtual |
Produces audio data in the given bus.
Should be overridden by subclasses.
bus | The bus that should be filled with audio data. |
Implements switchboard::SingleBusAudioSourceNode.
|
overridevirtual |
Sets bus format.
Should be overridden by subclasses.
busFormat | The bus format to set. |
Implements switchboard::SingleBusAudioSourceNode.
void switchboard::ResampledSourceNode::setInternalSampleRate | ( | const uint | internalSampleRate | ) |
Sets the internal sample rate for the encapsulated source node (the sample rate of the encapsulated source node).
internalSampleRate | The desired internal sample rate. |
void switchboard::ResampledSourceNode::setSourceNode | ( | SingleBusAudioSourceNode * | sourceNode | ) |
Sets the internal source node for the ResampledSourceNode (the sample rate of the encapsulated source node).
sourceNode | The encapsulated source node. |