mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
465af4c4d4
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.
22 lines
481 B
C++
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;
|
|
};
|