mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 19:28:27 +08:00
committed by
GitHub
parent
1da30d5d8f
commit
a915650bb6
@@ -1,13 +1,11 @@
|
||||
enum AudioNormalization { disable, dynaudnorm, loudnorm, custom }
|
||||
enum AudioNormalization {
|
||||
disable('禁用'),
|
||||
// ref https://github.com/KRTirtho/spotube/commit/da10ab2e291d4ba4d3082b9a6ae535639fb8f1b7
|
||||
dynaudnorm('预设 dynaudnorm', 'dynaudnorm=g=5:f=250:r=0.9:p=0.5'),
|
||||
loudnorm('预设 loudnorm', 'loudnorm=I=-16:LRA=11:TP=-1.5'),
|
||||
custom('自定义参数');
|
||||
|
||||
extension AudioNormalizationExt on AudioNormalization {
|
||||
String get title =>
|
||||
const ['禁用', '预设 dynaudnorm', '预设 loudnorm', '自定义参数'][index];
|
||||
String get param => const [
|
||||
'',
|
||||
// ref https://github.com/KRTirtho/spotube/commit/da10ab2e291d4ba4d3082b9a6ae535639fb8f1b7
|
||||
'dynaudnorm=g=5:f=250:r=0.9:p=0.5',
|
||||
'loudnorm=I=-16:LRA=11:TP=-1.5',
|
||||
'',
|
||||
][index];
|
||||
final String title;
|
||||
final String param;
|
||||
const AudioNormalization(this.title, [this.param = '']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user