librespot-golang icon indicating copy to clipboard operation
librespot-golang copied to clipboard

Audio key error for AAC

Open corny opened this issue 4 years ago • 2 comments

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())

corny avatar May 16 '21 15:05 corny

Replicates for me, too. Vorbis works fine.

joonas-fi avatar Apr 09 '22 14:04 joonas-fi

These work for me:

   oGG_VORBIS_160  = 1
   oGG_VORBIS_320  = 2
   oGG_VORBIS_96   = 0

89z avatar Apr 09 '22 14:04 89z