mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-22 19:07:38 +02:00
xxx
git-svn-id: svn://elaine/murooma/trunk@74 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
67db37c774
commit
ebddfc210a
2 changed files with 3 additions and 3 deletions
2
chunk.h
2
chunk.h
|
@ -1,7 +1,7 @@
|
|||
#ifndef CHUNK_H
|
||||
#define CHUNK_H
|
||||
|
||||
#define SAMPLE_RATE (44100)
|
||||
#define SAMPLE_RATE (48000)
|
||||
//#define SAMPLE_BIT (16)
|
||||
#define CHANNELS (2)
|
||||
|
||||
|
|
|
@ -38,9 +38,9 @@ int main () {
|
|||
timeval last;
|
||||
gettimeofday(&last, NULL);
|
||||
last.tv_sec -= 1000;
|
||||
while (true)
|
||||
while (cin.good())
|
||||
{
|
||||
c[0] = cin.get();
|
||||
c[0] = cin.get(c);
|
||||
c[1] = cin.get();
|
||||
chunk->payload[idx++] = (int)c[0] + ((int)c[1] * 256);
|
||||
if (idx == WIRE_CHUNK_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue