aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/uhjfilter.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-03 14:39:16 -0700
committerChris Robinson <[email protected]>2018-11-03 14:40:40 -0700
commit18e1d10338deda77cff58f21c2e1687442c6190d (patch)
treed7115bc11b9934d9f6530465a36265bdb44bd2e1 /Alc/uhjfilter.h
parente9d17c51912bbec566279290a435e504ace7aa0c (diff)
Convert the UHJ encoder to C++
Diffstat (limited to 'Alc/uhjfilter.h')
-rw-r--r--Alc/uhjfilter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/uhjfilter.h b/Alc/uhjfilter.h
index 9ea1fb44..211425ed 100644
--- a/Alc/uhjfilter.h
+++ b/Alc/uhjfilter.h
@@ -5,6 +5,10 @@
#include "alMain.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct AllPassState {
ALfloat z[2];
} AllPassState;
@@ -46,4 +50,8 @@ typedef struct Uhj2Encoder {
*/
void EncodeUhj2(Uhj2Encoder *enc, ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, ALfloat (*RESTRICT InSamples)[BUFFERSIZE], ALsizei SamplesToDo);
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
#endif /* UHJFILTER_H */