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

Applies a given offset to the audio that flows through this node. More...

#include <OffsetNode.hpp>

Inheritance diagram for switchboard::OffsetNode:

Public Member Functions

 OffsetNode (const float offset=0.0f)
 OffsetNode construcor.
 
void setOffset (const float offset)
 Sets the offset value.
 
float getOffset () const
 Gets the offset value currently in use.
 
bool setBusFormat (AudioBusFormat &inputBusFormat, AudioBusFormat &outputBusFormat) override
 
bool process (AudioBus &inBus, AudioBus &outBus) override
 

Detailed Description

Applies a given offset to the audio that flows through this node.

OffsetNode class

Constructor & Destructor Documentation

◆ OffsetNode()

switchboard::OffsetNode::OffsetNode ( const float offset = 0.0f)

OffsetNode construcor.

Parameters
offsetDC offset to be applied to the incoming audio

Member Function Documentation

◆ getOffset()

float switchboard::OffsetNode::getOffset ( ) const

Gets the offset value currently in use.

Returns
The offset value.

◆ setOffset()

void switchboard::OffsetNode::setOffset ( const float offset)

Sets the offset value.

Parameters
offsetThe new offset.