chore: unsingletonize SoundController (#5462)

This commit is contained in:
pajlada
2024-06-16 15:44:08 +02:00
committed by GitHub
parent 85d6ff1e6c
commit f111b0f08d
6 changed files with 13 additions and 24 deletions
+2 -7
View File
@@ -1,14 +1,9 @@
#pragma once
#include "common/Singleton.hpp"
#include <QUrl>
namespace chatterino {
class Settings;
class Paths;
enum class SoundBackend {
Miniaudio,
Null,
@@ -17,11 +12,11 @@ enum class SoundBackend {
/**
* @brief Handles sound loading & playback
**/
class ISoundController : public Singleton
class ISoundController
{
public:
ISoundController() = default;
~ISoundController() override = default;
virtual ~ISoundController() = default;
ISoundController(const ISoundController &) = delete;
ISoundController(ISoundController &&) = delete;
ISoundController &operator=(const ISoundController &) = delete;