mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-19 01:18:17 +02:00
xxx
git-svn-id: svn://elaine/murooma/trunk@70 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
071405049e
commit
858e49a3ed
4 changed files with 117 additions and 61 deletions
10
client.cpp
10
client.cpp
|
@ -50,14 +50,14 @@ static int patestCallback( const void *inputBuffer, void *outputBuffer,
|
|||
(void) statusFlags;
|
||||
(void) inputBuffer;
|
||||
|
||||
std::vector<short> s = stream->getChunk(timeInfo->outputBufferDacTime, framesPerBuffer);
|
||||
|
||||
PlayerChunk* playerChunk = stream->getChunk(timeInfo->outputBufferDacTime, framesPerBuffer);
|
||||
|
||||
for (size_t n=0; n<framesPerBuffer; n++)
|
||||
{
|
||||
*out++ = s[2*n];
|
||||
*out++ = s[2*n+1];
|
||||
*out++ = playerChunk->payload[2*n];
|
||||
*out++ = playerChunk->payload[2*n+1];
|
||||
}
|
||||
// delete chunk;
|
||||
delete playerChunk;
|
||||
|
||||
return paContinue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue