Esempio n. 1
0
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;
}
Esempio n. 2
0
bool ReplayGainSettings::isAnalyzerEnabled(int version) const {
    return getReplayGainAnalyzerEnabled()
            && (version == getReplayGainAnalyzerVersion());
}