source: src/utils/ringbuffer.h @ 8b07fa9

sampler
Last change on this file since 8b07fa9 was 1b86a8b, checked in by Paul Brossier <piem@piem.org>, 8 years ago

src/utils/ringbuffer.*: added ringbuffer draft

  • Property mode set to 100644
File size: 632 bytes
Line 
1
2
3#ifndef AUBIO_RINGBUFFER_H
4#define AUBIO_RINGBUFFER_H
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct _aubio_ringbuffer_t aubio_ringbuffer_t;
11
12aubio_ringbuffer_t * new_aubio_ringbuffer(uint_t maxwrite, uint_t maxrequest);
13
14uint_t aubio_ringbuffer_push(aubio_ringbuffer_t *o, fvec_t *output, uint_t write);
15
16uint_t aubio_ringbuffer_pull(aubio_ringbuffer_t *o, fvec_t *input, uint_t request);
17
18sint_t aubio_ringbuffer_get_available(aubio_ringbuffer_t *o);
19
20uint_t aubio_ringbuffer_reset(aubio_ringbuffer_t *o);
21
22void del_aubio_ringbuffer(aubio_ringbuffer_t *o);
23
24#ifdef __cplusplus
25}
26#endif
27
28#endif /* AUBIO_RINGBUFFER_H */
Note: See TracBrowser for help on using the repository browser.