bartolsthoorn / NVDSP

iOS/OSX DSP for audio (with Novocaine)
MIT License
415 stars 79 forks source link

RingBuffer #38

Open doriansgithub opened 6 years ago

doriansgithub commented 6 years ago

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.

K-Be commented 6 years ago

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.

doriansgithub commented 6 years ago

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!