feat: audio normalization

Closes #182

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-16 22:03:20 +08:00
parent 0afb6a3523
commit cc4f08e500
4 changed files with 116 additions and 2 deletions

View File

@@ -345,6 +345,9 @@ class GStorage {
static bool get showHotRcmd =>
GStorage.setting.get(SettingBoxKey.showHotRcmd, defaultValue: false);
static String get audioNormalization =>
GStorage.setting.get(SettingBoxKey.audioNormalization, defaultValue: '0');
static List<double> get dynamicDetailRatio => List<double>.from(setting
.get(SettingBoxKey.dynamicDetailRatio, defaultValue: [60.0, 40.0]));
@@ -566,6 +569,7 @@ class SettingBoxKey {
showVipDanmaku = 'showVipDanmaku',
mergeDanmaku = 'mergeDanmaku',
showHotRcmd = 'showHotRcmd',
audioNormalization = 'audioNormalization',
// Sponsor Block
enableSponsorBlock = 'enableSponsorBlock',