remember volume setting across restarts

This commit is contained in:
Drew Weymouth
2023-02-19 14:19:31 -08:00
parent 631ef947e5
commit a83e21d7ea
5 changed files with 27 additions and 7 deletions
+8
View File
@@ -32,12 +32,17 @@ type PlaylistPageConfig struct {
TracklistColumns []string
}
type LocalPlaybackConfig struct {
Volume int
}
type Config struct {
Application AppConfig
Servers []*ServerConfig
AlbumPage AlbumPageConfig
NowPlayingPage NowPlayingPageConfig
PlaylistPage PlaylistPageConfig
LocalPlayback LocalPlaybackConfig
}
func DefaultConfig() *Config {
@@ -55,6 +60,9 @@ func DefaultConfig() *Config {
PlaylistPage: PlaylistPageConfig{
TracklistColumns: []string{"Artist", "Album", "Time", "Plays"},
},
LocalPlayback: LocalPlaybackConfig{
Volume: 100,
},
}
}