repo.or.cz
/
aftubes.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
scons --> make
[aftubes.git]
/
buffer.h
blob
ac93040aa44245073d6c2ce756f7d74f9d0b6396
1
#ifndef BUFFER_H
2
#define BUFFER_H
3
4
#include
"aformat.h"
5
#include
"errors.h"
6
#include
"stddef.h"
7
8
struct
buffer
{
9
struct
aformat format
;
10
size_t
n_samples
;
11
void
*
data
;
12
};
13
14
void
buffer_init
(
struct
buffer
*
buf
);
15
err_t
buffer_alloc
(
struct
buffer
*
buf
,
size_t
n_samples
);
16
17
#endif