2020-01-18 08:38:21 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
2022-02-10 19:28:48 +00:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2020-01-18 08:38:21 +00:00
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 08:38:21 +00:00
|
|
|
*/
|
|
|
|
|
2019-09-04 18:18:41 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-09-30 04:55:42 +00:00
|
|
|
#include "VisualizationWidget.h"
|
2020-02-06 19:33:02 +00:00
|
|
|
#include <LibGUI/Frame.h>
|
2019-09-04 18:18:41 +00:00
|
|
|
|
2021-09-30 04:55:42 +00:00
|
|
|
class SampleWidget final : public VisualizationWidget {
|
2019-09-04 18:18:41 +00:00
|
|
|
C_OBJECT(SampleWidget)
|
|
|
|
public:
|
2022-02-10 19:28:48 +00:00
|
|
|
virtual ~SampleWidget() override = default;
|
2019-09-04 18:18:41 +00:00
|
|
|
|
|
|
|
private:
|
2022-01-09 21:46:06 +00:00
|
|
|
SampleWidget();
|
2022-05-06 20:14:16 +00:00
|
|
|
virtual void render(GUI::PaintEvent&, FixedArray<float> const& samples) override;
|
2019-09-04 18:18:41 +00:00
|
|
|
};
|