Add setting to disable server transcoding

This commit is contained in:
Drew Weymouth
2023-10-30 17:32:27 -07:00
parent 9b0a017e8c
commit c9320b8021
6 changed files with 26 additions and 9 deletions
+8
View File
@@ -98,6 +98,10 @@ type ThemeConfig struct {
Appearance string
}
type TranscodingConfig struct {
ForceRawFile bool
}
type Config struct {
Application AppConfig
Servers []*ServerConfig
@@ -112,6 +116,7 @@ type Config struct {
LocalPlayback LocalPlaybackConfig
Scrobbling ScrobbleConfig
ReplayGain ReplayGainConfig
Transcoding TranscodingConfig
Theme ThemeConfig
}
@@ -176,6 +181,9 @@ func DefaultConfig(appVersionTag string) *Config {
PreampGainDB: 0.0,
PreventClipping: true,
},
Transcoding: TranscodingConfig{
ForceRawFile: false,
},
Theme: ThemeConfig{
Appearance: "Dark",
},