mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 23:56:43 +02:00
xxx
git-svn-id: svn://elaine/murooma/trunk@87 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
1708157108
commit
2eea586913
1 changed files with 3 additions and 3 deletions
|
@ -99,7 +99,7 @@ timeval Stream::getNextPlayerChunk(short* outputBuffer, int correction)
|
||||||
{
|
{
|
||||||
addMs(nextTv, -PLAYER_CHUNK_MS / 2);
|
addMs(nextTv, -PLAYER_CHUNK_MS / 2);
|
||||||
}
|
}
|
||||||
// std::cerr << "Correction: " << correction << "\n";
|
std::cerr << "Correction: " << correction << "\n";
|
||||||
// size_t idxCorrection(0);
|
// size_t idxCorrection(0);
|
||||||
size_t idx(chunk->idx);
|
size_t idx(chunk->idx);
|
||||||
for (size_t n=0; n<PLAYER_CHUNK_SIZE/2; ++n)
|
for (size_t n=0; n<PLAYER_CHUNK_SIZE/2; ++n)
|
||||||
|
@ -126,7 +126,7 @@ timeval Stream::getNextPlayerChunk(short* outputBuffer, int correction)
|
||||||
//std::cerr << "Idx: " << chunk->idx << " => " << idx+2 << "\t" << WIRE_CHUNK_SIZE << "\t" << PLAYER_CHUNK_SIZE/2 << "\n";
|
//std::cerr << "Idx: " << chunk->idx << " => " << idx+2 << "\t" << WIRE_CHUNK_SIZE << "\t" << PLAYER_CHUNK_SIZE/2 << "\n";
|
||||||
chunk->idx = idx+2;
|
chunk->idx = idx+2;
|
||||||
setTimeval(chunk, nextTv);
|
setTimeval(chunk, nextTv);
|
||||||
//timeval tvLater = getTimeval(chunk);
|
timeval tvLater = getTimeval(chunk);
|
||||||
if (chunk->idx >= WIRE_CHUNK_SIZE)
|
if (chunk->idx >= WIRE_CHUNK_SIZE)
|
||||||
{
|
{
|
||||||
//std::cerr << "Pop" << "\n";
|
//std::cerr << "Pop" << "\n";
|
||||||
|
@ -135,7 +135,7 @@ timeval Stream::getNextPlayerChunk(short* outputBuffer, int correction)
|
||||||
// mutex.unlock();
|
// mutex.unlock();
|
||||||
delete chunk;
|
delete chunk;
|
||||||
}
|
}
|
||||||
//std::cerr << "Diff: " << diff_ms(tv, tvLater) << "\n";
|
std::cerr << "Diff: " << diff_ms(tv, tvLater) << "\n";
|
||||||
return tv;
|
return tv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue