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

#include <StereoPannerNode.hpp>

Inheritance diagram for switchboard::StereoPannerNode:

Public Member Functions

SB_WASM StereoPannerNode ()
 Creates a StereoPannerNode instance.
 
SB_WASM float getPan () const
 Gets the current pan value. The value can range between -1 (full left pan) and 1 (full right pan).
 
SB_WASM void setPan (const float newValue)
 Sets the panning value. The value can range between -1 (full left pan) and 1 (full right pan).
 
SB_WASM bool setBusFormat (AudioBusFormat &inputBusFormat, AudioBusFormat &outputBusFormat) override
 
SB_WASM bool process (AudioBus &inBus, AudioBus &outBus) override
 

Detailed Description

Member Function Documentation

◆ getPan()

float switchboard::StereoPannerNode::getPan ( ) const

Gets the current pan value. The value can range between -1 (full left pan) and 1 (full right pan).

Returns
The pan value.

◆ setPan()

void switchboard::StereoPannerNode::setPan ( const float newValue)

Sets the panning value. The value can range between -1 (full left pan) and 1 (full right pan).

Parameters
newValueThe pan value to set.