mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-02 19:01:47 +02:00
xxx
git-svn-id: svn://elaine/murooma/trunk@114 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
1735cfc1a2
commit
53e22c8f59
1 changed files with 7 additions and 2 deletions
|
@ -33,6 +33,11 @@ int main () {
|
|||
timeval tvChunk;
|
||||
gettimeofday(&tvChunk, NULL);
|
||||
long nextTick = getTickCount();
|
||||
|
||||
while (cin.good())
|
||||
cin.get();
|
||||
cin.clear();
|
||||
|
||||
while (cin.good())
|
||||
{
|
||||
for (size_t n=0; (n<WIRE_CHUNK_SIZE) && cin.good(); ++n)
|
||||
|
@ -42,8 +47,8 @@ int main () {
|
|||
chunk->payload[n] = (int)c[0] + ((int)c[1] * 256);
|
||||
}
|
||||
|
||||
if (!cin.good())
|
||||
cin.clear();
|
||||
// if (!cin.good())
|
||||
// cin.clear();
|
||||
|
||||
chunk->tv_sec = tvChunk.tv_sec;
|
||||
chunk->tv_usec = tvChunk.tv_usec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue