DroneBox doesn't build
pingdynasty opened this issue · 1 comments
pingdynasty commented
DroneBoxPatch.hpp uses a hardcoded AUDIO_SAMPLINGRATE which is no longer available.
This should fix it:
diff --git a/DroneBoxPatch.hpp b/DroneBoxPatch.hpp
index b0682f8..24b3331 100644
--- a/DroneBoxPatch.hpp
+++ b/DroneBoxPatch.hpp
@@ -107,7 +107,7 @@ private:
DCBlocker()
: mInM1(0.f)
, mOutM1(0.f)
- , mSampleRate(AUDIO_SAMPLINGRATE)
+ , mSampleRate(48000)
, mC(1.f - ( 126.f / mSampleRate))
{
}
@@ -176,7 +176,7 @@ private:
: mDTSamples(0)
, mFbkScalar(0.5f)
, mWriteAddr(0)
- , mSampleRate(AUDIO_SAMPLINGRATE)
+ , mSampleRate(48000)
, mDampingFilterL(0.3f)
, mDampingFilterR(0.35f)
, mBufferL(NULL)
@@ -283,8 +283,12 @@ public:
{
AudioBuffer* buffer = createMemoryBuffer(2, BUF_SIZE);
mCombs[c].setBuffer(buffer->getSamples(0), buffer->getSamples(1));
+ mCombs[c].setSampleRate(getSampleRate());
mCombs[c].clearBuffer();
}
+
+ mDCBlockerL.setSampleRate(getSampleRate());
+ mDCBlockerR.setSampleRate(getSampleRate());
}