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

Analyzes the audio and returns the RMS power of the signal per buffer. More...

#include <VUMeterNode.hpp>

Inheritance diagram for switchboard::VUMeterNode:
switchboard::SingleBusAudioSinkNode switchboard::AudioSinkNode switchboard::AudioNode

Public Member Functions

 VUMeterNode ()
 Creates a VUMeterNode instance.
 
const float getCurrentValue () const
 Returns the last buffers RMS value.
 
bool setBusFormat (AudioBusFormat &busFormat) override
 Sets bus format.
 
bool consume (AudioBus &bus) override
 Consumes audio data from the given bus.
 
- Public Member Functions inherited from switchboard::SingleBusAudioSinkNode
virtual bool setBusFormat (AudioBusFormat &busFormat)=0
 Sets bus format.
 
virtual bool consume (AudioBus &bus)=0
 Consumes audio data from the given bus.
 
bool setNumberOfBuses (const uint numberOfBuses) override
 Sets number of buses.
 
bool setBusFormats (AudioBusFormatList &busFormats) override
 Sets bus formats.
 
bool consume (AudioBusList &buses) override
 Consumes audio data from 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 consume (AudioBusList &buses)=0
 Consumes audio data from 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

Analyzes the audio and returns the RMS power of the signal per buffer.

VUMeterNode class

Member Function Documentation

◆ consume()

bool switchboard::VUMeterNode::consume ( AudioBus bus)
overridevirtual

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.

Implements switchboard::SingleBusAudioSinkNode.

◆ getCurrentValue()

const float switchboard::VUMeterNode::getCurrentValue ( ) const

Returns the last buffers RMS value.

Returns
The last buffers RMS value.

◆ setBusFormat()

bool switchboard::VUMeterNode::setBusFormat ( AudioBusFormat busFormat)
overridevirtual

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.

Implements switchboard::SingleBusAudioSinkNode.


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