blob: 5f8dbf51deca45ccd6672f4944cbd45e9ead717b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "VisualizationBase.h"
#include <LibGUI/Frame.h>
namespace Audio {
class Buffer;
}
class SampleWidget final : public GUI::Frame
, public Visualization {
C_OBJECT(SampleWidget)
public:
virtual ~SampleWidget() override;
void set_buffer(RefPtr<Audio::Buffer>) override;
private:
SampleWidget();
virtual void paint_event(GUI::PaintEvent&) override;
RefPtr<Audio::Buffer> m_buffer;
};
|