Update JackServerSettings.hpp

Declared Equals as a const method in JackServerSettings so it can be called on const instances without compiler errors

SetJackServerSettings now checks for changes before restarting audio, preventing redundant restarts
This commit is contained in:
Extremesecrecy
2025-07-26 14:20:14 -07:00
parent 8b3cdcf3f3
commit c753b8fc7f
+6 -2
View File
@@ -106,9 +106,13 @@ namespace pipedal
isOnboarding_ = value;
}
bool Equals(const JackServerSettings &other)
bool Equals(const JackServerSettings &other) const
{
return this->alsaInputDevice_ == other.alsaInputDevice_ && this->alsaOutputDevice_ == other.alsaOutputDevice_ && this->sampleRate_ == other.sampleRate_ && this->bufferSize_ == other.bufferSize_ && this->numberOfBuffers_ == other.numberOfBuffers_;
return this->alsaInputDevice_ == other.alsaInputDevice_ &&
this->alsaOutputDevice_ == other.alsaOutputDevice_ &&
this->sampleRate_ == other.sampleRate_ &&
this->bufferSize_ == other.bufferSize_ &&
this->numberOfBuffers_ == other.numberOfBuffers_;
}
DECLARE_JSON_MAP(JackServerSettings);