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

Used by Pipe class, should not be instantiated elsewhere. More...

#include <PipeSourceNode.hpp>

Inheritance diagram for switchboard::PipeSourceNode:

Public Member Functions

 PipeSourceNode (Pipe *pipe)
 Instantiates a PipeSourceNode. Should only be used by Pipe.
 
bool setBusFormat (AudioBusFormat &busFormat) override
 Sets bus format.
 
bool produce (AudioBus &bus) override
 Consumes audio data from the given bus.
 

Detailed Description

Used by Pipe class, should not be instantiated elsewhere.

PipeSourceNode.

Member Function Documentation

◆ produce()

bool switchboard::PipeSourceNode::produce ( AudioBus & bus)
override

Consumes audio data from the given bus.

Should be overridden by subclasses.

Parameters
busThe bus that contain the audio data.
Returns
True if audio was consumed successfully, false otherwise.

◆ setBusFormat()

bool switchboard::PipeSourceNode::setBusFormat ( AudioBusFormat & busFormat)
override

Sets bus format.

Should be overridden by subclasses.

Parameters
busFormatThe bus format to set.
Returns
True if the bus format was set successfully, false otherwise.