own implementation of singleton and logger
This commit is contained in:
1 parent
f6c5bcca39
commit
6aed7b0027
19 files changed
+745
-206
No files matched your search
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user