Never phase reset on silence in side channel, now that such resets are carried across

This commit is contained in:
Chris Cannam
2023-03-24 17:51:44 +00:00
parent 21b968c0c5
commit ba9fe26dcd
2 changed files with 13 additions and 1 deletions

View File

@@ -208,6 +208,7 @@ public:
int unityCount,
bool realtime,
bool tighterChannelLock,
bool resetOnSilence,
Guidance &guidance) const {
Profiler profiler("Guide::updateGuidance");
@@ -282,7 +283,7 @@ public:
// the band ranges as well - in normal multi-window mode we
// still have to do that, but we should do these first
if (meanMagnitude < 1.0e-6) {
if (resetOnSilence && meanMagnitude < 1.0e-6) {
updateForSilence(guidance);
return;
}