Making the amount of silence played configurable as dryout_ms.

This commit is contained in:
Tommy Goode 2017-10-08 23:09:48 -05:00 committed by Johannes Pohl
parent f49a2f1bb0
commit 50381bacaf
4 changed files with 8 additions and 2 deletions

View file

@ -73,7 +73,7 @@ void PipeStream::worker()
tvEncodedChunk_ = tvChunk;
long nextTick = chronos::getTickCount();
int idleFrames = 0;
int maxIdleFrames = sampleFormat_.rate*2;
int maxIdleFrames = sampleFormat_.rate*dryoutMs_/1000;
try
{
if (fd_ == -1)