Skip to content

Commit

Permalink
Removed namespace 'pitch_shift' to resolve linking error for createPl…
Browse files Browse the repository at this point in the history
…uginFilter function
  • Loading branch information
RachelMaryamLocke committed May 29, 2024
1 parent b265e40 commit e8130c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions src/PitchShift.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "PitchShift.h"

namespace pitch_shift
{
PitchShift::PitchShift() = default;

void PitchShift::prepareToPlay ([[maybe_unused]] double sample_rate, [[maybe_unused]] int samples_per_block)
Expand Down Expand Up @@ -99,7 +97,7 @@ void PitchShift::processAudioBlock ([[maybe_unused]] juce::AudioBuffer<float>& b
}
else // if (overflow_count < samples_to_fill)
{
jassertfalse; // not sure if we'll ever hit this?
// jassertfalse; // not sure if we'll ever hit this?
chowdsp::BufferMath::copyBufferData (overflow_buffer, buffer, 0, num_samples - overflow_count, overflow_count);
overflow_count = 0;
}
Expand All @@ -115,5 +113,4 @@ juce::AudioProcessorEditor* PitchShift::createEditor()
juce::AudioProcessor* JUCE_CALLTYPE createPluginFilter()
{
return new PitchShift();
}
} //namespace pitch_shift
}
5 changes: 1 addition & 4 deletions src/PitchShift.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include <pch.h>

namespace pitch_shift
{
struct PitchShiftParams : chowdsp::ParamHolder
{
PitchShiftParams()
Expand Down Expand Up @@ -52,5 +50,4 @@ class PitchShift : public chowdsp::PluginBase<chowdsp::PluginStateImpl<PitchShif
int overflow_count = 0;

JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PitchShift)
};
} //namespace pitch_shift
};

0 comments on commit e8130c1

Please sign in to comment.