NVDSP icon indicating copy to clipboard operation
NVDSP copied to clipboard

RingBuffer

Open doriansgithub opened this issue 7 years ago • 2 comments

We need to comment out the following in the RingBuffer, or we get errors.

#ifdef __cplusplus

#endif

Does anyone know why this is the case? We can't init the RingBuffer with the error.

doriansgithub avatar Nov 21 '17 18:11 doriansgithub

RingBuffer lies in other project, I think you should ask there.
Also I can't find such lines. I've found inside Novocaine.h :

#ifdef __cplusplus
 extern "C" {
 #endif
 <....>

#ifdef __cplusplus
 }
#endif

Here these lines open and close a extern C block of code.

K-Be avatar Nov 22 '17 02:11 K-Be

Sorry, I got that backwards, if we don't include these:

#ifdef __cplusplus #endif

...then we can't compile.

Once we include those, we can compile, but then we can't bring in the:

RingBuffer *RB

...like we bring these in:

@interface NovocainePlayer : NSObject { Novocaine *audioManager; AudioFileWriter *fileWriter; NVHighpassFilter *HPF; NVClippingDetection *CDT; NVPeakingEQFilter *PEQ; }

The EQ works, but I'm trying to figure out why it doesn't work as the sample project.

Thanks!

doriansgithub avatar Nov 22 '17 03:11 doriansgithub