mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add options for album gain
This commit is contained in:
parent
edb1c8867a
commit
4dcb0fa658
4 changed files with 22 additions and 10 deletions
|
@ -158,15 +158,15 @@ export class UserSettings {
|
|||
|
||||
/**
|
||||
* Get or set 'Enable Audio Normalization' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'Enable Audio Normalization' or undefined.
|
||||
* @return {boolean} 'Enable Audio Normalization' state.
|
||||
* @param {string|undefined} val - Flag to enable 'Enable Audio Normalization' or undefined.
|
||||
* @return {string} 'Enable Audio Normalization' state.
|
||||
*/
|
||||
enableAudioNormalization(val) {
|
||||
audioNormalization(val) {
|
||||
if (val !== undefined) {
|
||||
return this.set('enableAudioNormalization', val.toString(), false);
|
||||
return this.set('selectAudioNormalization', val, false);
|
||||
}
|
||||
|
||||
return toBoolean(this.get('enableAudioNormalization', false), true);
|
||||
return this.get('selectAudioNormalization', false) || "TrackGain";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue