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

Selects and forwards a single audio bus from multiple input audio buses to it's output. More...

#include <BusSelectNode.hpp>

Inheritance diagram for switchboard::BusSelectNode:

Public Member Functions

SB_WASM BusSelectNode ()
 Initializes a BusSelectNode instance.
 
SB_WASM uint getSelectedBus () const
 Gets the current selected bus index.
 
SB_WASM bool setSelectedBus (const uint newValue)
 Sets the selected bus index.
 
SB_WASM uint getNumberOfInputBuses () const
 Gets the number of input buses of the node.
 
SB_WASM bool setNumberOfBuses (const uint numberOfInputBuses, const uint numberOfOutputBuses) override
 
SB_WASM bool setBusFormats (AudioBusFormatList &inputBusFormats, AudioBusFormatList &outputBusFormats) override
 
SB_WASM bool process (AudioBusList &inBuses, AudioBusList &outBuses) override
 

Detailed Description

Selects and forwards a single audio bus from multiple input audio buses to it's output.

BusSelectNode class.

Member Function Documentation

◆ getNumberOfInputBuses()

uint switchboard::BusSelectNode::getNumberOfInputBuses ( ) const

Gets the number of input buses of the node.

Returns
The number of input buses..

◆ getSelectedBus()

uint switchboard::BusSelectNode::getSelectedBus ( ) const

Gets the current selected bus index.

Returns
The bus index.

◆ setSelectedBus()

bool switchboard::BusSelectNode::setSelectedBus ( const uint newValue)

Sets the selected bus index.

Will return false if the bus index is bigger than or equal than max number of input buses.

Parameters
newValueThe bus index to set.
Returns
True if setting the selected bus index was successful.