Switchboard SDK
Loading...
Searching...
No Matches
switchboard::ResampledSourceNode Class Reference

Encapsulates a SingleBusAudioSourceNode and provides environment for it with specified sample rate. More...

#include <ResampledSourceNode.hpp>

Inheritance diagram for switchboard::ResampledSourceNode:

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
 
bool produce (AudioBus &bus) override
 

Detailed Description

Encapsulates a SingleBusAudioSourceNode and provides environment for it with specified sample rate.

ResampledSourceNode class.

Member Function Documentation

◆ getInternalSampleRate()

uint switchboard::ResampledSourceNode::getInternalSampleRate ( ) const

Returns the internally set sample rate for the source node.

Returns
The internal sample rate.

◆ setInternalSampleRate()

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).

Parameters
internalSampleRateThe desired internal sample rate.

◆ setSourceNode()

void switchboard::ResampledSourceNode::setSourceNode ( SingleBusAudioSourceNode * sourceNode)

Sets the internal source node for the ResampledSourceNode (the sample rate of the encapsulated source node).

Parameters
sourceNodeThe encapsulated source node.