52 std::unique_ptr<VolumeSlider> volume_;
53 std::unique_ptr<PeakMeterViewer> peak_meter_left_;
54 std::unique_ptr<PeakMeterViewer> peak_meter_right_;
A visual component to display a peak meter using OpenGL.
Definition peak_meter_viewer.h:15
Base class for all synthesizer sections, providing UI layout, painting, and interaction logic.
Definition synth_section.h:193
A UI section that provides a master volume control and visual peak meters.
Definition volume_section.h:17
VolumeSection(String name)
Constructs a VolumeSection with a given name.
Definition volume_section.cpp:67
int getMeterHeight()
Computes the height of each peak meter.
Definition volume_section.cpp:81
void resized() override
Lays out and positions child components after a resize event.
Definition volume_section.cpp:89
~VolumeSection()
Destructor.
Definition volume_section.cpp:79
int getBuffer()
Computes a vertical buffer space used to layout components.
Definition volume_section.cpp:85
void paintBackground(Graphics &g) override
Paints the background of the volume section, including meters and volume slider.
Definition volume_section.cpp:107
A custom slider for controlling the output volume.
Definition volume_section.cpp:15