mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 07:02:54 +00:00
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
29 lines
552 B
C++
29 lines
552 B
C++
/*
|
|
* 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;
|
|
};
|