diff options
Diffstat (limited to 'v17mod.h')
-rw-r--r-- | v17mod.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/v17mod.h b/v17mod.h new file mode 100644 index 0000000..6417ca4 --- /dev/null +++ b/v17mod.h @@ -0,0 +1,22 @@ +#ifndef foov17modhfoo +#define foov17modhfoo + +#include <inttypes.h> + +struct v17mod_state { + int sample; + int symbol_index; + + int seconds; + + float *xsymbols, *ysymbols; + int i_symbols, n_symbols; +}; + +void v17mod_init(struct v17mod_state *s); +void v17mod_done(struct v17mod_state *s); + +void v17mod_push(struct v17mod_state *s, const uint8_t *p, int l); +int v17mod_pull(struct v17mod_state *s, float *p, int l); + +#endif |