mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
commit
c2ec479567
6 changed files with 31 additions and 17 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) {
|
||||
selectAudioNormalization(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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -651,7 +651,7 @@ export const serverConfig = currentSettings.serverConfig.bind(currentSettings);
|
|||
export const allowedAudioChannels = currentSettings.allowedAudioChannels.bind(currentSettings);
|
||||
export const preferFmp4HlsContainer = currentSettings.preferFmp4HlsContainer.bind(currentSettings);
|
||||
export const enableCinemaMode = currentSettings.enableCinemaMode.bind(currentSettings);
|
||||
export const enableAudioNormalization = currentSettings.enableAudioNormalization.bind(currentSettings);
|
||||
export const selectAudioNormalization = currentSettings.selectAudioNormalization.bind(currentSettings);
|
||||
export const enableNextVideoInfoOverlay = currentSettings.enableNextVideoInfoOverlay.bind(currentSettings);
|
||||
export const enableVideoRemainingTime = currentSettings.enableVideoRemainingTime.bind(currentSettings);
|
||||
export const enableThemeSongs = currentSettings.enableThemeSongs.bind(currentSettings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue