Has a sink and source node. Can be used to utilize output as input, without introducing a cycle to the graph. More...
#include <Pipe.hpp>
Public Member Functions | |
Pipe () | |
bool | setBusFormat (AudioBusFormat &busFormat) |
Sets bus format. | |
bool | consume (AudioBus &bus) |
Consumes audio data from the given bus. | |
bool | produce (AudioBus &bus) |
Produces audio data in the given bus. | |
SingleBusAudioSinkNode & | getSinkNode () |
Gets the sink(input) node of the pipe. | |
SingleBusAudioSourceNode & | getSourceNode () |
Gets the source(output) node of the pipe. | |
Has a sink and source node. Can be used to utilize output as input, without introducing a cycle to the graph.
Pipe class.
switchboard::Pipe::Pipe | ( | ) |
Creates a Pipe instance
bool switchboard::Pipe::consume | ( | AudioBus & | bus | ) |
Consumes audio data from the given bus.
bus | The bus that contain the audio data. |
SingleBusAudioSinkNode & switchboard::Pipe::getSinkNode | ( | ) |
Gets the sink(input) node of the pipe.
SingleBusAudioSourceNode & switchboard::Pipe::getSourceNode | ( | ) |
Gets the source(output) node of the pipe.
bool switchboard::Pipe::produce | ( | AudioBus & | bus | ) |
Produces audio data in the given bus.
bus | The bus that should be filled with audio data. |
bool switchboard::Pipe::setBusFormat | ( | AudioBusFormat & | busFormat | ) |
Sets bus format.
busFormat | The bus format to set. |