From 4dcb0fa658458f77f43563e9f098831fffb49aba Mon Sep 17 00:00:00 2001 From: TelepathicWalrus Date: Fri, 4 Aug 2023 17:45:59 +0100 Subject: [PATCH 01/15] Add options for album gain --- src/components/playbackSettings/playbackSettings.js | 4 ++-- .../playbackSettings/playbackSettings.template.html | 13 +++++++++++-- src/plugins/htmlAudioPlayer/plugin.js | 5 ++++- src/scripts/settings/userSettings.js | 10 +++++----- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/components/playbackSettings/playbackSettings.js b/src/components/playbackSettings/playbackSettings.js index 0e3a798b653..c152c4f21ac 100644 --- a/src/components/playbackSettings/playbackSettings.js +++ b/src/components/playbackSettings/playbackSettings.js @@ -173,7 +173,7 @@ function loadForm(context, user, userSettings, apiClient) { context.querySelector('.chkPlayDefaultAudioTrack').checked = user.Configuration.PlayDefaultAudioTrack || false; context.querySelector('.chkPreferFmp4HlsContainer').checked = userSettings.preferFmp4HlsContainer(); context.querySelector('.chkEnableCinemaMode').checked = userSettings.enableCinemaMode(); - context.querySelector('.chkEnableAudioNormalization').checked = userSettings.enableAudioNormalization(); + context.querySelector('#selectAudioNormalization').checked = userSettings.audioNormalization(); context.querySelector('.chkEnableNextVideoOverlay').checked = userSettings.enableNextVideoInfoOverlay(); context.querySelector('.chkRememberAudioSelections').checked = user.Configuration.RememberAudioSelections || false; context.querySelector('.chkRememberSubtitleSelections').checked = user.Configuration.RememberSubtitleSelections || false; @@ -218,7 +218,7 @@ function saveUser(context, user, userSettingsInstance, apiClient) { user.Configuration.EnableNextEpisodeAutoPlay = context.querySelector('.chkEpisodeAutoPlay').checked; userSettingsInstance.preferFmp4HlsContainer(context.querySelector('.chkPreferFmp4HlsContainer').checked); userSettingsInstance.enableCinemaMode(context.querySelector('.chkEnableCinemaMode').checked); - userSettingsInstance.enableAudioNormalization(context.querySelector('.chkEnableAudioNormalization').checked); + userSettingsInstance.audioNormalization(context.querySelector('#selectAudioNormalization').checked); userSettingsInstance.enableNextVideoInfoOverlay(context.querySelector('.chkEnableNextVideoOverlay').checked); user.Configuration.RememberAudioSelections = context.querySelector('.chkRememberAudioSelections').checked; user.Configuration.RememberSubtitleSelections = context.querySelector('.chkRememberSubtitleSelections').checked; diff --git a/src/components/playbackSettings/playbackSettings.template.html b/src/components/playbackSettings/playbackSettings.template.html index 44dfe85e0b5..29803fad833 100644 --- a/src/components/playbackSettings/playbackSettings.template.html +++ b/src/components/playbackSettings/playbackSettings.template.html @@ -72,13 +72,22 @@

${TabAdvanced}

-
+
+ +
${StereoDownmixAlgorithmHelp}
+
+ +