#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 |
|
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.
| numChannels | the number of channels that will be sent |
| sampleRate | the sampleRate the signal is timed in |
| maxKeepMS | the number of milliseconds to keep the max |
References setNumChannels().
| void setNumChannels | ( | int | numChannels | ) |
Set the number of channels to measure.
This should be done on a non-realtime thread.
Referenced by setupSource().
| int getNumChannels | ( | ) | const |