BASS_CONFIG_MIDI_SAMPLEMEM returns -1

Started by DaveAE, 26 Feb '25 - 12:46

DaveAE

On iOS 18.3.1 (probably on more versions), BASS_GetConfig(BASS_CONFIG_MIDI_SAMPLEMEM) returns -1 (4GB-1), before and after loading SoundFonts. On Android it seems fine.

Ian @ un4seen

That looks like the BASS_GetConfig call is failing. Please check the error code afterwards with BASS_ErrorGetCode to confirm. Also confirm what BASSMIDI version is being used with BASS_MIDI_GetVersion. The BASS_CONFIG_MIDI_SAMPLEMEM option was introduced in BASSMIDI 2.4.13, so if you're using an older version then that would explain the failure.

DaveAE

I think you are right. On Android, it says version 204101c, on iOS 2040c17, thanks!