mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-09 23:26:47 +02:00
socket
git-svn-id: svn://elaine/murooma/trunk@253 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
8039c3d023
commit
25f7f3060d
19 changed files with 26 additions and 1660 deletions
|
@ -8,10 +8,10 @@ using namespace std;
|
|||
|
||||
Stream::Stream(const SampleFormat& sampleFormat) : format(format_), format_(sampleFormat), sleep(0), median(0), shortMedian(0), lastUpdate(0)
|
||||
{
|
||||
pBuffer = new DoubleBuffer<int>(500);
|
||||
pShortBuffer = new DoubleBuffer<int>(100);
|
||||
pMiniBuffer = new DoubleBuffer<int>(20);
|
||||
pCardBuffer = new DoubleBuffer<int>(50);
|
||||
pBuffer = new DoubleBuffer<long>(500);
|
||||
pShortBuffer = new DoubleBuffer<long>(100);
|
||||
pMiniBuffer = new DoubleBuffer<long>(20);
|
||||
pCardBuffer = new DoubleBuffer<long>(50);
|
||||
bufferMs = 500;
|
||||
}
|
||||
|
||||
|
@ -218,7 +218,7 @@ cout << "\nms: " << Chunk::getAge(ms) << "\t chunk: " << chunk->getAge() << "\n"
|
|||
|
||||
|
||||
|
||||
int age = PcmChunk::getAge(getNextPlayerChunk(outputBuffer, framesPerBuffer, correction)) - bufferMs + outputBufferDacTime;
|
||||
long age = PcmChunk::getAge(getNextPlayerChunk(outputBuffer, framesPerBuffer, correction)) - bufferMs + outputBufferDacTime;
|
||||
|
||||
|
||||
// if (pCardBuffer->full())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue