FastLED 3.9.15
Loading...
Searching...
No Matches
fl::SoundLevelMeter Class Reference

Detailed Description

Definition at line 59 of file audio.h.

#include <audio.h>

Public Member Functions

 SoundLevelMeter (double spl_floor=33.0f, double smoothing_alpha=0.0)
 
double getDBFS () const
 
double getSPL () const
 
void processBlock (const int16_t *samples, size_t count)
 Process a block of int16 PCM samples.
 
void processBlock (fl::Slice< const int16_t > samples)
 
void resetFloor ()
 reset so the next quiet block will re-initialize your floor
 
void setFloorSPL (double spl_floor)
 change your known noise-floor SPL at runtime
 

Private Attributes

double current_dbfs_
 
double current_spl_
 
double dbfs_floor_global_
 
double offset_
 
double smoothing_alpha_
 
double spl_floor_
 

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