CC-430: Audio normalization (Replaygain Support)
-some minor fixes for default value (should be 0 dB not 1dB)
This commit is contained in:
parent
5c1af49252
commit
24349e64d8
5 changed files with 13 additions and 7 deletions
|
@ -412,6 +412,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
|
||||
/**
|
||||
* The value for the replay_gain field.
|
||||
* Note: this column has a database default value of: '0'
|
||||
* @var string
|
||||
*/
|
||||
protected $replay_gain;
|
||||
|
@ -471,6 +472,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
$this->currentlyaccessing = 0;
|
||||
$this->length = '00:00:00';
|
||||
$this->file_exists = true;
|
||||
$this->replay_gain = '0';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2611,7 +2613,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->replay_gain !== $v) {
|
||||
if ($this->replay_gain !== $v || $this->isNew()) {
|
||||
$this->replay_gain = $v;
|
||||
$this->modifiedColumns[] = CcFilesPeer::REPLAY_GAIN;
|
||||
}
|
||||
|
@ -2661,6 +2663,10 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($this->replay_gain !== '0') {
|
||||
return false;
|
||||
}
|
||||
|
||||
// otherwise, everything was equal, so return TRUE
|
||||
return true;
|
||||
} // hasOnlyDefaultValues()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue