buffer stuff

git-svn-id: svn://elaine/murooma/trunk@104 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-27 11:54:08 +00:00
parent 46fdc5df84
commit c1a36fed13

View file

@ -6,7 +6,7 @@
Stream::Stream() : sleep(0), median(0), shortMedian(0), lastUpdate(0)
{
pBuffer = new DoubleBuffer<int>(30000 / PLAYER_CHUNK_MS);
pBuffer = new DoubleBuffer<int>(15000 / PLAYER_CHUNK_MS);
pShortBuffer = new DoubleBuffer<int>(5000 / PLAYER_CHUNK_MS);
pLock = new std::unique_lock<std::mutex>(mtx);
bufferMs = 500;
@ -164,7 +164,7 @@ void Stream::getChunk(short* outputBuffer, double outputBufferDacTime, unsigned
{
if (abs(median) > 1)
{
correction = -median;
correction = -shortMedian;
pBuffer->clear();
pShortBuffer->clear();
}