summaryrefslogtreecommitdiff
path: root/src/AudioCompress
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-30 21:47:12 +0100
committerMax Kellermann <max@duempel.org>2013-01-30 21:47:12 +0100
commitd664baff2699842f2182968f5c26dbf63babdeff (patch)
tree387920b40478228d7c0ba0574c2415dd3ee91a8c /src/AudioCompress
parent3275d4c6fa40c66c410bd279f3571ba36f95c4d6 (diff)
audio_{parser,config}: convert to C++
Diffstat (limited to 'src/AudioCompress')
-rw-r--r--src/AudioCompress/compress.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/AudioCompress/compress.h b/src/AudioCompress/compress.h
index 073d4af9a..8556d16be 100644
--- a/src/AudioCompress/compress.h
+++ b/src/AudioCompress/compress.h
@@ -19,6 +19,10 @@ struct CompressorConfig {
struct Compressor;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
//! Create a new compressor (use history value of 0 for default)
struct Compressor *Compressor_new(unsigned int history);
@@ -34,7 +38,12 @@ struct CompressorConfig *Compressor_getConfig(struct Compressor *);
//! Process 16-bit signed data
void Compressor_Process_int16(struct Compressor *, int16_t *data, unsigned int count);
+#ifdef __cplusplus
+}
+#endif
+
//! TODO: Compressor_Process_int32, Compressor_Process_float, others as needed
//! TODO: functions for getting at the peak/gain/clip history buffers (for monitoring)
+
#endif