After upgrading to the latest BASSMIDI version I am unable to load a SF2 file from a ByteBuffer:
BASS_MIDI_FontInit() called with: file = [java.nio.DirectByteBuffer[pos=5671354 lim=5671360 cap=5671360]], flags = [0]
BASS_MIDI_FontInit() returned: 0
BASS_ErrorGetCode() called
BASS_ErrorGetCode() returned: 20
At the beginning I thought it was due to the fact that I was specifying BASSMIDI.BASS_MIDI_FONT_NOLIMITS, but even removing it and setting the flag to 0, I still get error 20.
The same code works with the previous beta version of the library I was using (2.4.14.25).