ladybird/Userland/Applications/SoundPlayer/VisualizationWidget.h
Ben Wiederhake 465af4c4d4 Applications: Fix visibility of Object-derivative constructors
Derivatives of Core::Object should be constructed through
ClassName::construct(), to avoid handling ref-counted objects with
refcount zero. Fixing the visibility means that misuses like this are
more difficult.
2021-11-02 22:56:53 +01:00

22 lines
481 B
C++

/*
* Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibAudio/Buffer.h>
#include <LibGUI/Frame.h>
class VisualizationWidget : public GUI::Frame {
C_OBJECT(VisualizationWidget)
public:
virtual void set_buffer(RefPtr<Audio::Buffer> buffer) = 0;
virtual void set_samplerate(int) { }
protected:
VisualizationWidget() = default;
virtual ~VisualizationWidget() = default;
};