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
5 changed files with 24 additions and 1 deletions

View File

@@ -80,7 +80,8 @@ const (
)
var (
DefaultTranscodings = []map[string]interface{}{
DefaultDownsamplingFormat = "opus"
DefaultTranscodings = []map[string]interface{}{
{
"name": "mp3 audio",
"targetFormat": "mp3",