aboutsummaryrefslogtreecommitdiffstats
path: root/libtoolame-dab/toolame.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-17 20:16:12 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-17 20:16:12 +0100
commitce5773ca73462a9319c16d0afc692eb38e35af8d (patch)
tree5725cb73db488bcc82ef287b388f169df02224a8 /libtoolame-dab/toolame.h
parent5671aa4f0f5536de2fc58b6f89f01947f4f8f1c1 (diff)
downloadODR-AudioEnc-ce5773ca73462a9319c16d0afc692eb38e35af8d.tar.gz
ODR-AudioEnc-ce5773ca73462a9319c16d0afc692eb38e35af8d.tar.bz2
ODR-AudioEnc-ce5773ca73462a9319c16d0afc692eb38e35af8d.zip
Many libtoolame-dab fixes, at least filesize is right now
Diffstat (limited to 'libtoolame-dab/toolame.h')
-rw-r--r--libtoolame-dab/toolame.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/libtoolame-dab/toolame.h b/libtoolame-dab/toolame.h
index d7f8198..1c29e24 100644
--- a/libtoolame-dab/toolame.h
+++ b/libtoolame-dab/toolame.h
@@ -7,6 +7,13 @@
/* Initialise toolame encoding library. */
int toolame_init(void);
+/* Finish encoding the pending samples.
+ * Returns number of bytes written to output_buffer
+ */
+int toolame_finish(
+ unsigned char *output_buffer,
+ size_t output_buffer_size);
+
int toolame_enable_downmix_stereo(void);
int toolame_enable_byteswap(void);
@@ -20,13 +27,19 @@ int toolame_set_psy_model(int new_model);
int toolame_set_bitrate(int brate);
+/* Set sample rate in Hz */
+int toolame_set_samplerate(long sample_rate);
+
/* Enable PAD insertion from the specified file with length */
int toolame_set_pad(int pad_len);
+/* Encodes one frame. Returns number of bytes written to output_buffer
+ */
int toolame_encode_frame(
short buffer[2][1152],
- unsigned char* xpad_data,
- unsigned char *output_buffer);
+ unsigned char *xpad_data,
+ unsigned char *output_buffer,
+ size_t output_buffer_size);
#endif // __TOOLAME_H_