Make sending of silence configurable

This commit is contained in:
badaix 2020-11-25 09:20:16 +01:00
parent 90c7ba8a67
commit 4b7c313fa0
4 changed files with 22 additions and 6 deletions

View file

@ -56,6 +56,11 @@ protected:
std::vector<char> silent_chunk_;
std::chrono::microseconds silence_;
std::string lastException_;
/// send silent chunks to clients
bool send_silence_;
/// silence duration before switching the stream to idle
std::chrono::milliseconds idle_threshold_;
};
} // namespace streamreader