fix and cleanup

This commit is contained in:
MihailRis
2025-04-02 14:55:53 +03:00
parent 3beafe953f
commit cd5c6a889c
5 changed files with 9 additions and 39 deletions
+6 -6
View File
@@ -17,12 +17,12 @@ static debug::Logger logger("audio");
using namespace audio;
namespace {
static speakerid_t nextId = 1;
static Backend* backend;
static std::unordered_map<speakerid_t, std::unique_ptr<Speaker>> speakers;
static std::unordered_map<speakerid_t, std::shared_ptr<Stream>> streams;
static std::vector<std::unique_ptr<Channel>> channels;
static util::ObjectsKeeper objects_keeper {};
speakerid_t nextId = 1;
Backend* backend;
std::unordered_map<speakerid_t, std::unique_ptr<Speaker>> speakers;
std::unordered_map<speakerid_t, std::shared_ptr<Stream>> streams;
std::vector<std::unique_ptr<Channel>> channels;
util::ObjectsKeeper objects_keeper {};
}
Channel::Channel(std::string name) : name(std::move(name)) {