mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 18:06:15 +02:00
code formatting
This commit is contained in:
parent
b7d4034e43
commit
56389ad202
6 changed files with 114 additions and 107 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue