Add samplingRate to OpenSubsonic responses

This commit is contained in:
Deluan
2024-05-11 17:44:24 -04:00
committed by Deluan Quintão
parent f3bb022238
commit 3a2a5e961b
25 changed files with 40 additions and 25 deletions
@@ -143,6 +143,7 @@ var _ = Describe("Responses", func() {
Suffix: "flac", TranscodedContentType: "audio/mpeg", TranscodedSuffix: "mp3",
Duration: 146, BitRate: 320, Starred: &t, Genres: []ItemGenre{{Name: "rock"}, {Name: "progressive"}},
Comment: "a comment", Bpm: 127, MediaType: MediaTypeSong, MusicBrainzId: "4321", ChannelCount: 2,
SamplingRate: 44100, SortName: "sorted title",
ReplayGain: ReplayGain{TrackGain: 1, AlbumGain: 2, TrackPeak: 3, AlbumPeak: 4, BaseGain: 5, FallbackGain: 6},
}
response.Directory.Child = child