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

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

#include <ResampledSinkNode.hpp>

Inheritance diagram for switchboard::ResampledSinkNode:

Public Member Functions

 ResampledSinkNode ()
 ResampledSinkNode constructor.
 
void setSinkNode (SingleBusAudioSinkNode *sinkNode)
 Sets the internal sink node for the ResampledSinkNode (the sample rate of the encapsulated sink node).
 
uint getInternalSampleRate () const
 Returns the internally set sample rate for the sink node.
 
void setInternalSampleRate (const uint internalSampleRate)
 Sets the internal sample rate for the encapsulated sink node (the sample rate of the encapsulated sink node).
 
bool setBusFormat (AudioBusFormat &busFormat) override
 
bool consume (AudioBus &bus) override
 

Detailed Description

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

ResampledSinkNode class.

Member Function Documentation

◆ getInternalSampleRate()

uint switchboard::ResampledSinkNode::getInternalSampleRate ( ) const

Returns the internally set sample rate for the sink node.

Returns
The internal sample rate.

◆ setInternalSampleRate()

void switchboard::ResampledSinkNode::setInternalSampleRate ( const uint internalSampleRate)

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

Parameters
internalSampleRateThe desired internal sample rate.

◆ setSinkNode()

void switchboard::ResampledSinkNode::setSinkNode ( SingleBusAudioSinkNode * sinkNode)

Sets the internal sink node for the ResampledSinkNode (the sample rate of the encapsulated sink node).

Parameters
sinkNodeThe encapsulated sink node.