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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user