librespot-golang
librespot-golang copied to clipboard
Audio key error for AAC
If I select AudioFile_AAC_320 or AudioFile_AAC_160 I get an Audio key error!
Steps to reproduce the issue:
var selectedFile *Spotify.AudioFile
for _, file := range track.Alternative[0].File {
if file.GetFormat() == Spotify.AudioFile_AAC_160 {
selectedFile = file
}
}
audioFile, err := session.Player().LoadTrack(selectedFile, track.GetGid())
Replicates for me, too. Vorbis works fine.
These work for me:
oGG_VORBIS_160 = 1
oGG_VORBIS_320 = 2
oGG_VORBIS_96 = 0