mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-01 10:21:46 +02:00
git-svn-id: svn://elaine/murooma/trunk@168 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
35dc268e13
commit
33182825b9
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ void Stream::getPlayerChunk(short* outputBuffer, double outputBufferDacTime, uns
|
|||
while (true)// (int i=0; i<(int)(round((float)sleep / (float)PLAYER_CHUNK_MS)) + 1; ++i)
|
||||
{
|
||||
int age = Chunk::getAge(getNextPlayerChunk(outputBuffer, framesPerBuffer)) - bufferMs;
|
||||
age += 2*cardBuffer;
|
||||
age += 4*cardBuffer;
|
||||
if (age < msBuffer / 2)
|
||||
break;
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ void Stream::getPlayerChunk(short* outputBuffer, double outputBufferDacTime, uns
|
|||
age += outputBufferDacTime*1000;
|
||||
|
||||
// if (pCardBuffer->full())
|
||||
age += 2*cardBuffer;
|
||||
age += 4*cardBuffer;
|
||||
|
||||
cout << age << "\t" << msBuffer << "\t" << ticks << "\tcardBuffer: " << cardBuffer << "\n";
|
||||
// cout << age << "\t" << outputBufferDacTime*1000 << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue