foleys_gui_magic
WYSWYG editor for JUCE GUIs including Visualisers
Public Member Functions | List of all members
MagicLevelSource Class Reference

Public Member Functions

 MagicLevelSource ()=default
 
void pushSamples (const juce::AudioBuffer< float > &buffer)
 Send new sample values to the measurement. More...
 
float getRMSvalue (int channel) const
 
float getMaxValue (int channel) const
 
void setupSource (int numChannels, double sampleRate, int maxKeepMS)
 Setup the source to measure a signal. More...
 
void setNumChannels (int numChannels)
 Set the number of channels to measure. More...
 
int getNumChannels () const
 

Constructor & Destructor Documentation

◆ MagicLevelSource()

MagicLevelSource ( )
default

Member Function Documentation

◆ pushSamples()

void pushSamples ( const juce::AudioBuffer< float > &  buffer)

Send new sample values to the measurement.

◆ getRMSvalue()

float getRMSvalue ( int  channel) const

◆ getMaxValue()

float getMaxValue ( int  channel) const

◆ setupSource()

void setupSource ( int  numChannels,
double  sampleRate,
int  maxKeepMS 
)

Setup the source to measure a signal.

Parameters
numChannelsthe number of channels that will be sent
sampleRatethe sampleRate the signal is timed in
maxKeepMSthe number of milliseconds to keep the max

References MagicLevelSource::setNumChannels().

◆ setNumChannels()

void setNumChannels ( int  numChannels)

Set the number of channels to measure.

This should be done on a non-realtime thread.

Referenced by MagicLevelSource::setupSource().

◆ getNumChannels()

int getNumChannels ( ) const

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