Convert ALc.c to C++

This commit is contained in:
Chris Robinson 2018-11-14 04:15:44 -08:00
parent dfcb6d3e6d
commit 3021a426c0
4 changed files with 252 additions and 255 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,10 @@
#ifndef FILTER_NFC_H
#define FILTER_NFC_H
#ifdef __cplusplus
extern "C" {
#endif
struct NfcFilter1 {
float base_gain, gain;
float b1, a1;
@ -46,4 +50,8 @@ void NfcFilterProcess2(NfcFilter *nfc, float *RESTRICT dst, const float *RESTRIC
/* Near-field control filter for third-order ambisonic channels (9-15). */
void NfcFilterProcess3(NfcFilter *nfc, float *RESTRICT dst, const float *RESTRICT src, const int count);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* FILTER_NFC_H */

View File

@ -6,6 +6,10 @@
/* For BUFFERSIZE. */
#include "alMain.h"
#ifdef __cplusplus
extern "C" {
#endif
struct Compressor;
/* The compressor is initialized with the following settings:
@ -46,4 +50,8 @@ void ApplyCompression(struct Compressor *Comp, const ALsizei SamplesToDo,
ALsizei GetCompressorLookAhead(const struct Compressor *Comp);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* MASTERING_H */

View File

@ -839,7 +839,7 @@ SET(OPENAL_OBJS
OpenAL32/sample_cvt.c
)
SET(ALC_OBJS
Alc/ALc.c
Alc/alc.cpp
Alc/ALu.c
Alc/alconfig.cpp
Alc/alconfig.h