git-svn-id: svn://elaine/murooma/trunk@168 d8a302eb-03bc-478d-80e4-98257eca68ef

This commit is contained in:
(no author) 2014-08-09 13:24:05 +00:00
parent 35dc268e13
commit 33182825b9

View file

@ -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";