77 else if (value < 0.0f)
115 return static_cast<AudioAnalyzePeak *
>(
analyzer)->
read();
117 return static_cast<AudioAnalyzeRMS *
>(
analyzer)->
read();
118 default:
ERROR(F(
"Error: Invalid type!"), 0x1518);
return 0;
125 return static_cast<AudioAnalyzePeak *
>(
analyzer)
128 return static_cast<AudioAnalyzeRMS *
>(
analyzer)
130 default:
ERROR(F(
"Error: Invalid type!"), 0x1519);
return false;
#define BEGIN_CS_NAMESPACE
The AudioAnalyzePeak and AudioAnalyzeRMS classes don't implement a common interface,...
enum AudioVU::Analyzer::@3 type
Analyzer(AudioAnalyzeRMS &analyzer)
Analyzer(AudioAnalyzePeak &analyzer)
A VU meter that reads from an Audio stream using the Analyzer class.
MovingCoilBallistics ballistics
uint8_t getValue() override
Get the value of the VU meter.
AudioVU(T &level, MovingCoilBallistics ballistics, float gain=1.0, uint8_t max=255)
Create a new AudioVU object.
class AudioVU::Analyzer level
AudioVU(T &level, float gain=1.0, uint8_t max=255)
Create a new AudioVU object.
bool getOverload() override
void setGain(float gain)
Set the gain for the VU meter.
float getFloatValue() override
Get the value of the VU meter.
An abstract interface for VU meters.
IVU(uint8_t max, bool alwaysDirty=false)
static MovingCoilBallistics responsiveVU(float Tsfactor=2.0)