From d664baff2699842f2182968f5c26dbf63babdeff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jan 2013 21:47:12 +0100 Subject: audio_{parser,config}: convert to C++ --- src/AudioCompress/compress.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/AudioCompress') 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 -- cgit v1.2.3