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
+2
View File
@@ -16,6 +16,8 @@ func (m *MockTranscodingRepo) FindByFormat(format string) (*model.Transcoding, e
return &model.Transcoding{ID: "mp31", TargetFormat: "mp3", DefaultBitRate: 160}, nil
case "oga":
return &model.Transcoding{ID: "oga1", TargetFormat: "oga", DefaultBitRate: 128}, nil
case "opus":
return &model.Transcoding{ID: "opus1", TargetFormat: "opus", DefaultBitRate: 96}, nil
default:
return nil, model.ErrNotFound
}