summaryrefslogtreecommitdiffstats
path: root/libtoolame-dab/vlc_input.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-15 02:44:20 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-15 02:44:20 +0100
commit22f1fce330059ef8a383cf327a023d6a9da5ad3e (patch)
tree6893f158dcaaaa1b9f1317923c32a841ba31f768 /libtoolame-dab/vlc_input.h
parent891bb2592944aa2be2d81e1583e73e632e70537f (diff)
downloadODR-AudioEnc-22f1fce330059ef8a383cf327a023d6a9da5ad3e.tar.gz
ODR-AudioEnc-22f1fce330059ef8a383cf327a023d6a9da5ad3e.tar.bz2
ODR-AudioEnc-22f1fce330059ef8a383cf327a023d6a9da5ad3e.zip
Include toolame-dab as library
Diffstat (limited to 'libtoolame-dab/vlc_input.h')
-rw-r--r--libtoolame-dab/vlc_input.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/libtoolame-dab/vlc_input.h b/libtoolame-dab/vlc_input.h
new file mode 100644
index 0000000..a2ecefa
--- /dev/null
+++ b/libtoolame-dab/vlc_input.h
@@ -0,0 +1,34 @@
+#ifndef __VLC_INPUT_H_
+#define __VLC_INPUT_H_
+
+# if defined(VLC_INPUT)
+
+#include <stdint.h>
+#include <stddef.h>
+#include <sys/types.h>
+#include <vlc/vlc.h>
+
+
+// A linked list structure for the incoming buffers
+struct vlc_buffer {
+ uint8_t *buf;
+ size_t size;
+ struct vlc_buffer *next;
+};
+
+// Open the VLC input
+int vlc_in_prepare(
+ unsigned verbosity,
+ unsigned int rate,
+ const char* uri,
+ unsigned channels,
+ const char* icy_write_file);
+
+// Read len audio bytes into buf
+ssize_t vlc_in_read(void *buf, size_t len);
+
+void vlc_in_write_icy(void);
+
+# endif // VLC_INPUT
+#endif // __VLC_INPUT_H_
+