Skip to content

Commit

Permalink
Fix Rotary Speaker processOnlyControl (#7875)
Browse files Browse the repository at this point in the history
2 problems, mostly with names and punctuaction. One of those
thigns I couldn't find in an hour a month ago and found in
5 minutes tonight.

Closes #7788
  • Loading branch information
baconpaul authored Nov 29, 2024
1 parent a114028 commit e4910b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/common/dsp/effects/SurgeSSTFXAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ struct SurgeFXConfig
static inline float dbToLinear(GlobalStorage *s, float f) { return s->db_to_linear(f); }
};

template <typename T> class Has_processControlOnly
template <typename T> class Has_processOnlyControl
{
using No = uint8_t;
using Yes = uint64_t;
static_assert(sizeof(No) != sizeof(Yes));
template <typename C> static Yes test(decltype(C::processControlOnly) *);
template <typename C> static Yes test(decltype(&C::processOnlyControl) *);
template <typename C> static No test(...);

public:
Expand Down Expand Up @@ -270,11 +270,11 @@ template <typename T> struct SurgeSSTFXBase : T
}
}

void process_control_only()
void process_only_control() override
{
if constexpr (sstfx::Has_processControlOnly<T>::value)
if constexpr (sstfx::Has_processOnlyControl<T>::value)
{
this->processControlOnly();
this->processOnlyControl();
}
}
};
Expand Down

0 comments on commit e4910b6

Please sign in to comment.