code formatting

This commit is contained in:
badaix 2015-07-26 13:05:07 +02:00
parent b7d4034e43
commit 56389ad202
6 changed files with 114 additions and 107 deletions

View file

@ -276,7 +276,10 @@ bool Stream::getPlayerChunk(void* outputBuffer, const cs::usec& outputBufferDacT
}
}
// framesCorrection = number of frames to be read more or less to get in-sync
long framesCorrection = correction.count()*format_.usRate();
// sample rate correction
if ((correctAfterXFrames_ != 0) && (playedFrames_ >= (unsigned long)abs(correctAfterXFrames_)))
{
framesCorrection += (correctAfterXFrames_ > 0)?1:-1;