Skip to content

Commit

Permalink
fix(controller): rename variable lhFilterType to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
zsliu98 committed Dec 24, 2024
1 parent 633694e commit 2b24baa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/dsp/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ namespace zlDSP {

void Controller::processLH(juce::AudioBuffer<double> &buffer) {
juce::dsp::AudioBlock<double> lBlock, hBlock;
if (lhFilterType.load() == lhFilterType::svf) {
if (mLhFilterType.load() == lhFilterType::svf) {
lhSplitter.split(buffer);
lBlock = juce::dsp::AudioBlock<double>(lhSplitter.getLBuffer());
hBlock = juce::dsp::AudioBlock<double>(lhSplitter.getHBuffer());
Expand Down
6 changes: 3 additions & 3 deletions source/dsp/controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace zlDSP {
}

void setLHFilterType(const lhFilterType::ftype x) {
lhFilterType.store(x);
mLhFilterType.store(x);
}

zlSplitter::LRSplitter<double> &getLRSplitter() {
Expand Down Expand Up @@ -76,7 +76,7 @@ namespace zlDSP {
return 0;
}
case splitType::lhigh: {
switch (lhFilterType.load()) {
switch (mLhFilterType.load()) {
case lhFilterType::svf:
return 0;
case lhFilterType::fir:
Expand All @@ -97,7 +97,7 @@ namespace zlDSP {

private:
std::atomic<splitType::stype> mSplitType;
std::atomic<lhFilterType::ftype> lhFilterType;
std::atomic<lhFilterType::ftype> mLhFilterType;
zlSplitter::LRSplitter<double> lrSplitter;
zlSplitter::MSSplitter<double> msSplitter;
zlSplitter::LHSplitter<double> lhSplitter;
Expand Down

0 comments on commit 2b24baa

Please sign in to comment.