I am just starting out with BASS.
I am adapting the VB.NET frmTag example to play FLAC files as well as MP3. I have added a picturebox and am able to easily use TI.PictureGetImage(n) to display the embedded album art in an .mp3 file.
However, I can not display the album art embedded in a .flac file.
I have added the following code to the vb.net sample:
Imports BassFlac = Un4seen.Bass.AddOn.Flac.BassFlac
'changed action of play button to
If TextBox1.Text.ToLower().EndsWith(".flac") Then
'strm = Bass.BASS_StreamCreateFile(TextBox1.Text, 0, 0, Un4seen.Bass.BASSFlag.BASS_SAMPLE_FLOAT)
strm = BassFlac.BASS_FLAC_StreamCreateFile(TextBox1.Text, 0, 0, BASSFlag.BASS_DEFAULT)
'added code to display image in a picturebox
pb1.Image = TI.PictureGetImage(0)
the BassFlac.dll and Bass.dll are in the BIN directory.
The .flac file appears to play fine and the other tags on the form are returned. All other software (foobar2000, silverjuke, and a few vb6 and vb.net ID3 tag libaries) display the embedded album art correctly for both FLAC and MP3 files.