1
0
Fork 0
mirror of https://github.com/badaix/snapcast.git synced 2025-08-13 09:17:26 +02:00

Clean up AsioStream reader code

This commit is contained in:
badaix 2019-12-01 11:38:55 +01:00
commit a47849a571
8 changed files with 35 additions and 137 deletions
server/streamreader

View file

@ -25,6 +25,7 @@
#include "pcm_stream.hpp"
#include "process.hpp"
// TODO: switch to AsioStream, maybe use boost::process library
/// Starts an external process and reads and PCM data from stdout
/**
@ -49,6 +50,7 @@ protected:
std::unique_ptr<Process> process_;
std::thread stderrReaderThread_;
bool logStderr_;
size_t dryoutMs_;
void worker() override;
virtual void stderrReader();