Merge pull request #103 from dweymouth/feature/replay-gain

Add ReplayGain support
This commit is contained in:
Drew Weymouth
2023-03-28 18:24:02 -07:00
committed by GitHub
5 changed files with 83 additions and 0 deletions
+12
View File
@@ -59,6 +59,12 @@ type ScrobbleConfig struct {
ThresholdPercent int
}
type ReplayGainConfig struct {
Mode string
PreampGainDB float64
PreventClipping bool
}
type Config struct {
Application AppConfig
Servers []*ServerConfig
@@ -70,6 +76,7 @@ type Config struct {
PlaylistPage PlaylistPageConfig
LocalPlayback LocalPlaybackConfig
Scrobbling ScrobbleConfig
ReplayGain ReplayGainConfig
}
func DefaultConfig() *Config {
@@ -108,6 +115,11 @@ func DefaultConfig() *Config {
ThresholdTimeSeconds: 240,
ThresholdPercent: 50,
},
ReplayGain: ReplayGainConfig{
Mode: ReplayGainNone,
PreampGainDB: 0.0,
PreventClipping: true,
},
}
}