mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
SoundPlayer: Add samplerate variable to visualizations
also fix conflict
This commit is contained in:
parent
2e28b8ebcc
commit
fd126578d9
12 changed files with 51 additions and 311 deletions
|
@ -28,10 +28,10 @@
|
|||
|
||||
#include <LibGUI/Slider.h>
|
||||
|
||||
class Slider final : public GUI::Slider {
|
||||
C_OBJECT(Slider)
|
||||
class AutoSlider final : public GUI::Slider {
|
||||
C_OBJECT(AutoSlider)
|
||||
public:
|
||||
~Slider() override = default;
|
||||
~AutoSlider() override = default;
|
||||
Function<void(int)> on_knob_released;
|
||||
void set_value(int value)
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ public:
|
|||
}
|
||||
|
||||
protected:
|
||||
Slider(Orientation orientation)
|
||||
AutoSlider(Orientation orientation)
|
||||
: GUI::Slider(orientation)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue