-
Notifications
You must be signed in to change notification settings - Fork 38
/
out_buf.h
33 lines (26 loc) · 827 Bytes
/
out_buf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef BUF_H
#define BUF_H
#include "fifo_buf.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void out_buf_free_callback ();
struct out_buf;
struct out_buf *out_buf_new (int size);
void out_buf_free (struct out_buf *buf);
int out_buf_put (struct out_buf *buf, const char *data, int size);
void out_buf_pause (struct out_buf *buf);
void out_buf_unpause (struct out_buf *buf);
void out_buf_stop (struct out_buf *buf);
void out_buf_reset (struct out_buf *buf);
void out_buf_time_set (struct out_buf *buf, const float time);
int out_buf_time_get (struct out_buf *buf);
void out_buf_set_free_callback (struct out_buf *buf,
out_buf_free_callback callback);
int out_buf_get_free (struct out_buf *buf);
int out_buf_get_fill (struct out_buf *buf);
void out_buf_wait (struct out_buf *buf);
#ifdef __cplusplus
}
#endif
#endif