add config option for audio device name and set it on startup

This commit is contained in:
Drew Weymouth
2023-04-05 18:19:56 -07:00
parent b5086eafd3
commit d6a84c78a1
3 changed files with 10 additions and 0 deletions
+3
View File
@@ -49,6 +49,7 @@ type PlaylistPageConfig struct {
}
type LocalPlaybackConfig struct {
AudioDeviceName string
AudioExclusive bool
InMemoryCacheSizeMB int
Volume int
@@ -108,6 +109,8 @@ func DefaultConfig(appVersionTag string) *Config {
TracklistColumns: []string{"Artist", "Album", "Time", "Plays"},
},
LocalPlayback: LocalPlaybackConfig{
// "auto" is the name to pass to MPV for autoselecting the output device
AudioDeviceName: "auto",
AudioExclusive: false,
InMemoryCacheSizeMB: 30,
Volume: 100,