21#include <Image_utils.h>
31 m_changesPending =
false;
42 juce::Component::paint(g);
52 juce::Component::mouseDown(event);
57 startTimerHz(frequency);
67 m_usesValuesInDB = useValuesInDB;
72 return m_usesValuesInDB;
131 m_changesPending =
true;
136 if (m_changesPending)
138 m_changesPending =
false;
AbstractAudioVisualizer()
void paint(Graphics &) override
Paints the visualiser background.
virtual void processChanges()
Called on the message thread to update cached data before repainting.
void notifyChanges()
Marks that new data is available and triggers a repaint on the next timer tick.
void setRefreshFrequency(int frequency)
Sets the display refresh rate in Hz.
void setUsesValuesInDB(bool useValuesInDB)
void mouseDown(const MouseEvent &event) override
Handles mouse-down events (e.g. right-click context menu).
void timerCallback() override
Timer callback that calls processChanges() and triggers a repaint if data changed.
virtual ~AbstractAudioVisualizer()
void resized() override
Lays out child components.