Switchboard SDK
|
Changes the gain of the audio that flows through this node. More...
#include <GainNode.hpp>
Public Member Functions | |
GainNode (const std::map< std::string, std::any > &config) | |
Creates a GainNode instance. | |
SB_WASM float | getGain () const |
Gets the current gain value. | |
SB_WASM void | setGain (const float newValue) |
Sets the gain. | |
SB_WASM bool | setBusFormat (AudioBusFormat &inputBusFormat, AudioBusFormat &outputBusFormat) override |
SB_WASM bool | process (AudioBus &inBus, AudioBus &outBus) override |
Changes the gain of the audio that flows through this node.
GainNode class.
switchboard::GainNode::GainNode | ( | const std::map< std::string, std::any > & | config | ) |
Creates a GainNode instance.
config | Configuration map for the node. |
float switchboard::GainNode::getGain | ( | ) | const |
Gets the current gain value.
void switchboard::GainNode::setGain | ( | const float | newValue | ) |
Sets the gain.
newValue | The gain value to set. |