CC-4821: Add option to disable ReplayGain

- done
This commit is contained in:
James 2013-01-10 13:49:41 -05:00
parent 4bf9ab60d9
commit 048ee05030
6 changed files with 51 additions and 22 deletions

View file

@ -1253,6 +1253,14 @@ class Application_Model_Preference
return ($data != "") ? unserialize($data) : null;
}
public static function SetEnableReplayGain($value) {
self::setValue("enable_replay_gain", $value, false);
}
public static function GetEnableReplayGain() {
return self::getValue("enable_replay_gain", false);
}
public static function getReplayGainModifier(){
$rg_modifier = self::getValue("replay_gain_modifier");