diff options
author | mio <stigma@disroot.org> | 2024-11-10 19:39:43 +1000 |
---|---|---|
committer | mio <stigma@disroot.org> | 2025-01-11 12:12:32 +1000 |
commit | 5cfecec40972f7d6f77879e1209bc10d6019625b (patch) | |
tree | b94f3a2565f83e61821d1a8544f156cda42a4f41 /src/app/audioView.h | |
parent | e023e2eafb5dc39fe11595f343d867ac6ebe7f5b (diff) | |
download | codeine-5cfecec40972f7d6f77879e1209bc10d6019625b.tar.gz codeine-5cfecec40972f7d6f77879e1209bc10d6019625b.zip |
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 <stigma@disroot.org>
Diffstat (limited to 'src/app/audioView.h')
-rw-r--r-- | src/app/audioView.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 <stigma@disroot.org> +// +// SPDX-License-Identifier: GPL-2.0-or-later. + +#ifndef CODEINE_AUDIOVIEW_H +#define CODEINE_AUDIOVIEW_H + +#include <tqframe.h> + +namespace Codeine +{ + +class AudioView : public TQFrame +{ + public: + AudioView(TQWidget *parent, const char *name = nullptr); + + private: + TQWidget *m_analyzer; +}; + +} + +#endif /* CODEINE_AUDIOVIEW_H */ |