summaryrefslogtreecommitdiff
path: root/Userland/Applications/SoundPlayer/SampleWidget.h
blob: 63f3b8dc66baf831d5df5eb7194a6964330ba804 (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
/*
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include "VisualizationWidget.h"
#include <LibGUI/Frame.h>

namespace Audio {
class Buffer;
}

class SampleWidget final : public VisualizationWidget {
    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;
};