WYSWYG editor for JUCE GUIs including Visualisers
Loading...
Searching...
No Matches
MagicLevelSource Class Reference

#include <foleys_MagicLevelSource.h>

Public Member Functions

 MagicLevelSource ()=default
 
void pushSamples (const juce::AudioBuffer< float > &buffer)
 Send new sample values to the measurement.
 
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.
 
void setNumChannels (int numChannels)
 Set the number of channels to measure.
 
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: