flac: Saner EOF handling
[cmus.git] / buffer.h
blobc44ad7e1bb19ee01cca991ccd6c2345632f57bc8
1 #ifndef _BUFFER_H
2 #define _BUFFER_H
4 #define CHUNK_SIZE (64 * 1024)
6 extern unsigned int buffer_nr_chunks;
8 void buffer_init(void);
9 int buffer_get_rpos(char **pos);
10 int buffer_get_wpos(char **pos);
11 void buffer_consume(int count);
12 int buffer_fill(int count);
13 void buffer_reset(void);
14 int buffer_get_filled_chunks(void);
16 #endif