From 5cfecec40972f7d6f77879e1209bc10d6019625b Mon Sep 17 00:00:00 2001 From: mio Date: Sun, 10 Nov 2024 19:39:43 +1000 Subject: Create a AudioView widget for audio-only streams Currently Codeine will show a blank area when playing an audio-only file, such as music. This patch adds a new widget that contains an instance of the Analyzer::Block class, so instead of a blank area it contains a "visualizer" of sorts. Signed-off-by: mio --- src/app/audioView.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/app/audioView.h (limited to 'src/app/audioView.h') diff --git a/src/app/audioView.h b/src/app/audioView.h new file mode 100644 index 0000000..592e38f --- /dev/null +++ b/src/app/audioView.h @@ -0,0 +1,24 @@ +// SPDX-FileCopyrightText: 2025 mio +// +// SPDX-License-Identifier: GPL-2.0-or-later. + +#ifndef CODEINE_AUDIOVIEW_H +#define CODEINE_AUDIOVIEW_H + +#include + +namespace Codeine +{ + +class AudioView : public TQFrame +{ + public: + AudioView(TQWidget *parent, const char *name = nullptr); + + private: + TQWidget *m_analyzer; +}; + +} + +#endif /* CODEINE_AUDIOVIEW_H */ -- cgit v1.2.3