bool ReplayGainSettings::isAnalyzerDisabled(int version, TrackPointer tio) const { int prefversion = getReplayGainAnalyzerVersion(); bool analyzerEnabled = getReplayGainAnalyzerEnabled() && (version == prefversion); bool reanalyze = getReplayGainReanalyze(); if (analyzerEnabled) { if (reanalyze) { // ignore stored replay gain return false; } return tio->getReplayGain().hasRatio(); } // not enabled, pretend we have already a stored value. return true; }
bool ReplayGainSettings::isAnalyzerEnabled(int version) const { return getReplayGainAnalyzerEnabled() && (version == getReplayGainAnalyzerVersion()); }