mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
SoundPlayer: Rename NoVisualization to AlbumCoverVisualization
Since the NoVisualization widget now shows the album cover, it should be called AlbumCoverVisualization instead.
This commit is contained in:
parent
2b1ac91764
commit
2470997fc9
4 changed files with 15 additions and 15 deletions
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com>
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "VisualizationWidget.h"
|
||||
#include <LibAudio/Buffer.h>
|
||||
#include <LibGUI/Frame.h>
|
||||
|
||||
class AlbumCoverVisualizationWidget final : public VisualizationWidget {
|
||||
C_OBJECT(AlbumCoverVisualizationWidget)
|
||||
|
||||
public:
|
||||
~AlbumCoverVisualizationWidget() override = default;
|
||||
void set_buffer(RefPtr<Audio::Buffer>) override;
|
||||
void start_new_file(StringView) override;
|
||||
|
||||
private:
|
||||
void paint_event(GUI::PaintEvent&) override;
|
||||
AlbumCoverVisualizationWidget() = default;
|
||||
ErrorOr<NonnullRefPtr<Gfx::Bitmap>> get_album_cover(StringView const filename);
|
||||
|
||||
RefPtr<Gfx::Bitmap> m_serenity_bg;
|
||||
RefPtr<Gfx::Bitmap> m_album_cover;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue