own implementation of singleton and logger

This commit is contained in:
faumaray committed 2026-01-19 15:36:21 +03:00
1 parent f6c5bcca39
commit 6aed7b0027
19 files changed
+745 -206

No files matched your search

+2 -4
View File
@@ -8,6 +8,8 @@
#include <thread>
#include <vector>
#include "Logger.hpp"
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
@@ -37,10 +39,6 @@ public:
bool IsFinished() const { return m_finished.load(); }
private:
void Log(const std::string &msg) {
std::lock_guard<std::mutex> lock(m_logMtx);
std::cout << "[AudioDecoder] " << msg << std::endl;
}
void Cleanup();
void InternalDecode(std::string url, int targetSampleRate);
std::atomic<DecodeStatus> m_status{DecodeStatus::Idle};