mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-07 21:31:42 +02:00
Making the amount of silence played configurable as dryout_ms.
This commit is contained in:
parent
f49a2f1bb0
commit
50381bacaf
4 changed files with 8 additions and 2 deletions
|
@ -50,6 +50,11 @@ PcmStream::PcmStream(PcmListener* pcmListener, const StreamUri& uri) :
|
|||
|
||||
if (uri_.query.find("buffer_ms") != uri_.query.end())
|
||||
pcmReadMs_ = cpt::stoul(uri_.query["buffer_ms"]);
|
||||
|
||||
if (uri_.query.find("dryout_ms") != uri_.query.end())
|
||||
dryoutMs_ = cpt::stoul(uri_.query["dryout_ms"]);
|
||||
else
|
||||
dryoutMs_ = 2000;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue