fix audio desync for realsies, stderr to log.txt
This commit is contained in:
1 parent
c11b404392
commit
1b5ba6b584
13 files changed
+347
-21
No files matched your search
+12
@@ -4,6 +4,8 @@
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
|
||||
namespace anm2ed
|
||||
{
|
||||
@@ -44,6 +46,16 @@ namespace anm2ed
|
||||
class Logger
|
||||
{
|
||||
std::ofstream file{};
|
||||
std::mutex mutex{};
|
||||
std::thread stderrThread{};
|
||||
bool isStderrRedirecting{};
|
||||
int stderrPipeReadFd{-1};
|
||||
int stderrPipeWriteFd{-1};
|
||||
int stderrOriginalFd{-1};
|
||||
|
||||
void stderr_redirect_start();
|
||||
void stderr_redirect_stop();
|
||||
void stderr_pump();
|
||||
|
||||
public:
|
||||
static std::filesystem::path path();
|
||||
|
||||
Reference in new issue
Block a user