Loading...
Searching...
No Matches
Public Member Functions | List of all members
switchboard::AudioGraphInputNode Class Reference

Represents the input node of the audio graph. More...

#include <AudioGraphInputNode.hpp>

Inheritance diagram for switchboard::AudioGraphInputNode:
switchboard::AudioSourceNode switchboard::AudioNode

Public Member Functions

 AudioGraphInputNode ()
 Creates an AudioGraphInputNode instance.
 
void setGraphInAudioBuses (AudioBusList *graphInAudioBuses)
 Sets the source of the audio data.
 
bool setNumberOfBuses (const uint numberOfBuses) override
 Sets number of buses.
 
bool setBusFormats (AudioBusFormatList &busFormats) override
 Sets bus formats.
 
bool produce (AudioBusList &buses) override
 Produces audio data in the given buses.
 
virtual bool setNumberOfBuses (const uint numberOfBuses)=0
 Sets number of buses.
 
virtual bool setBusFormats (AudioBusFormatList &busFormats)=0
 Sets bus formats.
 
virtual bool produce (AudioBusList &buses)=0
 Produces audio data in the given buses.
 
- Public Member Functions inherited from switchboard::AudioNode
virtual ~AudioNode ()=default
 AudioNode virtual destructor.
 
const std::string & getType () const
 Gets the type of the audio node.
 
virtual const std::string getDisplayName () const
 Gets the display name of the audio node.
 

Additional Inherited Members

- Public Attributes inherited from switchboard::AudioNode
std::string name
 The name of the audio node.
 
- Protected Attributes inherited from switchboard::AudioNode
std::string type
 

Detailed Description

Represents the input node of the audio graph.

AudioGraphInputNode class.

Member Function Documentation

◆ produce()

bool switchboard::AudioGraphInputNode::produce ( AudioBusList buses)
overridevirtual

Produces audio data in the given buses.

Should be overridden by subclasses.

Parameters
busesThe buses that should be filled with audio data.
Returns
True if audio was produced successfully, false otherwise.

Implements switchboard::AudioSourceNode.

◆ setBusFormats()

bool switchboard::AudioGraphInputNode::setBusFormats ( AudioBusFormatList busFormats)
overridevirtual

Sets bus formats.

Should be overridden by subclasses.

Parameters
busFormatsThe bus formats to set.
Returns
True if the bus formats were set successfully, false otherwise.

Implements switchboard::AudioSourceNode.

◆ setGraphInAudioBuses()

void switchboard::AudioGraphInputNode::setGraphInAudioBuses ( AudioBusList graphInAudioBuses)

Sets the source of the audio data.

The AudioGraph instance is responsible for calling this method.

Parameters
graphInAudioBusesAn AudioBusList instance that has the audio input data.

◆ setNumberOfBuses()

bool switchboard::AudioGraphInputNode::setNumberOfBuses ( const uint  numberOfBuses)
overridevirtual

Sets number of buses.

Should be overridden by subclasses.

Parameters
numberOfBusesThe number of buses to set.
Returns
True if the number of buses was set successfully, false otherwise.

Implements switchboard::AudioSourceNode.


The documentation for this class was generated from the following files: