mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 08:33:00 -06:00
fix: refactor audio conversion mode handling in FFMpeg
This commit is contained in:
parent
3c4da551c9
commit
b7975763cf
|
|
@ -96,9 +96,10 @@ func (ffmpeg *FFMpeg) Convert(call *Call, systems *Systems, tags *Tags, mode uin
|
||||||
}
|
}
|
||||||
|
|
||||||
if ffmpeg.version43 {
|
if ffmpeg.version43 {
|
||||||
if mode == AUDIO_CONVERSION_ENABLED_NORM {
|
switch mode {
|
||||||
|
case AUDIO_CONVERSION_ENABLED_NORM:
|
||||||
args = append(args, "-af", "apad=whole_dur=3s,loudnorm")
|
args = append(args, "-af", "apad=whole_dur=3s,loudnorm")
|
||||||
} else if mode == AUDIO_CONVERSION_ENABLED_LOUD_NORM {
|
case AUDIO_CONVERSION_ENABLED_LOUD_NORM:
|
||||||
args = append(args, "-af", "apad=whole_dur=3s,loudnorm=I=-16:TP=-1.5:LRA=11")
|
args = append(args, "-af", "apad=whole_dur=3s,loudnorm=I=-16:TP=-1.5:LRA=11")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue