diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-02-15 02:44:20 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-02-15 02:44:20 +0100 |
commit | 22f1fce330059ef8a383cf327a023d6a9da5ad3e (patch) | |
tree | 6893f158dcaaaa1b9f1317923c32a841ba31f768 /libtoolame-dab/xpad.h | |
parent | 891bb2592944aa2be2d81e1583e73e632e70537f (diff) | |
download | ODR-AudioEnc-22f1fce330059ef8a383cf327a023d6a9da5ad3e.tar.gz ODR-AudioEnc-22f1fce330059ef8a383cf327a023d6a9da5ad3e.tar.bz2 ODR-AudioEnc-22f1fce330059ef8a383cf327a023d6a9da5ad3e.zip |
Include toolame-dab as library
Diffstat (limited to 'libtoolame-dab/xpad.h')
-rw-r--r-- | libtoolame-dab/xpad.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libtoolame-dab/xpad.h b/libtoolame-dab/xpad.h new file mode 100644 index 0000000..cd0a434 --- /dev/null +++ b/libtoolame-dab/xpad.h @@ -0,0 +1,28 @@ +#ifndef _XPAD_H_ +#define _XPAD_H_ + +#include <stdint.h> + +/* Initialise the xpad reader + * + * pad_fifo is the filename of the FIFO that will be created, and + * can be used with mot-encoder. + * + * pad_len is the XPAD length, that also has to be given + * to mot-encoder. + * + * returns 0 on success + * -1 on failure + */ +int xpad_init(char* pad_fifo, int pad_len); + +/* Get len bytes of x-pad data, write into buf + * returns either + * - len if the read was sucessful + * - 0 if there was no data + * - -1 if there was an error (errno will be set) + */ +int xpad_read_len(uint8_t* buf, int len); + +#endif + |