mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-19 01:18:17 +02:00
chunks have shorts
git-svn-id: svn://elaine/murooma/trunk@56 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
332bacd4ee
commit
f72c213407
3 changed files with 5 additions and 5 deletions
|
@ -29,6 +29,7 @@ std::deque<int> timeDiffs;
|
|||
std::mutex mtx;
|
||||
std::mutex mutex;
|
||||
std::condition_variable cv;
|
||||
int bufferMs;
|
||||
|
||||
|
||||
void player()
|
||||
|
@ -334,7 +335,7 @@ int main (int argc, char *argv[])
|
|||
timeval now;
|
||||
gettimeofday(&now, NULL);
|
||||
std::cerr << "New chunk: " << chunkTime(*chunk) << "\t" << timeToStr(now) << "\t" << getAge(*chunk) << "\n";
|
||||
for (size_t n=0; n<WIRE_CHUNK_MS/PLAYER_CHUNK_MS; ++n)
|
||||
/* for (size_t n=0; n<WIRE_CHUNK_MS/PLAYER_CHUNK_MS; ++n)
|
||||
{
|
||||
PlayerChunk* playerChunk = new PlayerChunk();
|
||||
playerChunk->tv_sec = chunk->tv_sec;
|
||||
|
@ -346,7 +347,7 @@ int main (int argc, char *argv[])
|
|||
mutex.unlock();
|
||||
cv.notify_all();
|
||||
}
|
||||
}
|
||||
*/ }
|
||||
delete chunk;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue