snapcast/chunk.h
(no author) fcf5250a47 buffering
git-svn-id: svn://elaine/murooma/trunk@33 d8a302eb-03bc-478d-80e4-98257eca68ef
2014-06-28 21:39:16 +00:00

20 lines
269 B
C

#ifndef CHUNK_H
#define CHUNK_H
#define MS (50)
//44100 / 20 = 2205
#define SAMPLE_RATE (44100)
#define SIZE (SAMPLE_RATE*4*MS/1000)
int bufferMs;
#define FRAMES_PER_BUFFER (SIZE/4)
struct Chunk
{
int32_t tv_sec;
int32_t tv_usec;
char payload[SIZE];
};
#endif