Add global Downsampling feature (#1575)

* Add global downsampling feature

* Default to Opus &  consider player transcoder

* Add a test case for DefaultDownsamplingFormat

Co-authored-by: Deluan <deluan@navidrome.org>
This commit is contained in:
gauth-fr 2022-12-07 01:41:16 +01:00 committed by GitHub
parent 0cc1db54d4
commit 55ba39cb79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 1 deletions

View file

@ -67,6 +67,9 @@ type configOptions struct {
Spotify spotifyOptions
ListenBrainz listenBrainzOptions
//test downsampling
DefaultDownsamplingFormat string
// DevFlags. These are used to enable/disable debugging and incomplete features
DevLogSourceLine bool
DevLogLevels map[string]string
@ -268,6 +271,8 @@ func init() {
viper.SetDefault("listenbrainz.enabled", true)
viper.SetDefault("listenbrainz.baseurl", "https://api.listenbrainz.org/1/")
viper.SetDefault("defaultdownsamplingformat", consts.DefaultDownsamplingFormat)
// DevFlags. These are used to enable/disable debugging and incomplete features
viper.SetDefault("devlogsourceline", false)
viper.SetDefault("devautocreateadminpassword", "")