Control Surface stm32
MIDI Control Surface library for Arduino
Public Member Functions | Private Types | Private Attributes | List of all members
AudioVU::Analyzer Class Reference

Detailed Description

The AudioAnalyzePeak and AudioAnalyzeRMS classes don't implement a common interface, so we have to use our own RTTI wrapper to allow both classes to be used.

Definition at line 101 of file AudioVU.hpp.

+ Collaboration diagram for AudioVU::Analyzer:

Public Member Functions

 Analyzer (AudioAnalyzePeak &analyzer)
 
 Analyzer (AudioAnalyzeRMS &analyzer)
 
float read () const
 
bool available () const
 

Private Types

enum  { Peak , RMS }
 

Private Attributes

enum AudioVU::Analyzer:: { ... }  type
 
void * analyzer
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
Peak 
RMS 

Definition at line 103 of file AudioVU.hpp.

Constructor & Destructor Documentation

◆ Analyzer() [1/2]

Analyzer ( AudioAnalyzePeak &  analyzer)
inline

Definition at line 107 of file AudioVU.hpp.

◆ Analyzer() [2/2]

Analyzer ( AudioAnalyzeRMS &  analyzer)
inline

Definition at line 109 of file AudioVU.hpp.

Member Function Documentation

◆ read()

float read ( ) const
inline

Definition at line 112 of file AudioVU.hpp.

◆ available()

bool available ( ) const
inline

Definition at line 122 of file AudioVU.hpp.

Member Data Documentation

◆ 

enum { ... } type

◆ analyzer

void* analyzer
private

Definition at line 104 of file AudioVU.hpp.


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