mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-19 20:16:15 +02:00
test
git-svn-id: svn://elaine/murooma/trunk@163 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
0b79e540a9
commit
a069a6be82
2 changed files with 4 additions and 1 deletions
|
@ -141,9 +141,11 @@ void Stream::getPlayerChunk(short* outputBuffer, double outputBufferDacTime, uns
|
||||||
|
|
||||||
|
|
||||||
int age = Chunk::getAge(getNextPlayerChunk(outputBuffer, framesPerBuffer, correction)) - bufferMs;// + outputBufferDacTime*1000;
|
int age = Chunk::getAge(getNextPlayerChunk(outputBuffer, framesPerBuffer, correction)) - bufferMs;// + outputBufferDacTime*1000;
|
||||||
// cout << age << "\t";
|
long currentTick = getTickCount();
|
||||||
|
cout << age << "\t" << msBuffer << "\t" << currentTick - lastTick << "\n";
|
||||||
if (outputBufferDacTime < 1)
|
if (outputBufferDacTime < 1)
|
||||||
age += outputBufferDacTime*1000;
|
age += outputBufferDacTime*1000;
|
||||||
|
lastTick = currentTick;
|
||||||
// cout << age << "\t" << outputBufferDacTime*1000 << "\n";
|
// cout << age << "\t" << outputBufferDacTime*1000 << "\n";
|
||||||
|
|
||||||
|
|
||||||
|
|
1
stream.h
1
stream.h
|
@ -27,6 +27,7 @@ private:
|
||||||
void updateBuffers(int age);
|
void updateBuffers(int age);
|
||||||
void resetBuffers();
|
void resetBuffers();
|
||||||
|
|
||||||
|
long lastTick;
|
||||||
float sleep;
|
float sleep;
|
||||||
// int correction;
|
// int correction;
|
||||||
Queue<std::shared_ptr<Chunk>> chunks;
|
Queue<std::shared_ptr<Chunk>> chunks;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue