Analyzes the audio and returns the RMS power of the signal per buffer. More...
#include <VUMeterNode.hpp>
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. | |
![]() | |
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. | |
![]() | |
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 | |
![]() | |
std::string | name |
The name of the audio node. | |
![]() | |
std::string | type |
Analyzes the audio and returns the RMS power of the signal per buffer.
VUMeterNode class
|
overridevirtual |
Consumes audio data from the given bus.
Should be overridden by subclasses.
bus | The bus that contain the audio data. |
Implements switchboard::SingleBusAudioSinkNode.
const float switchboard::VUMeterNode::getCurrentValue | ( | ) | const |
Returns the last buffers RMS value.
|
overridevirtual |
Sets bus format.
Should be overridden by subclasses.
busFormat | The bus format to set. |
Implements switchboard::SingleBusAudioSinkNode.