I am implementing a 6 bands equalizer using BASS_BFX_PEAKEQ in an Android app. In its latest release I am starting to get reports of failures of the BASS_FXSetParameters call when setting correct values on the effect, with error 20. It is not a very common error and I am not able to reproduce it. This is an example of values I set successfully on my device, but for which I have reports with errors (the default flat equalizer):
BASS_ChannelSetFX() called with: handle = [-2147483494], type = [65540], priority = [6]
BASS_ChannelSetFX() returned: -2147483473
BASS_FXSetParameters() called with: handle = [-2147483473], params = [com.un4seen.bass.BASS_FX$BASS_BFX_PEAKEQ@835e204]
lBand=0, fBandwidth=1.6687073, fQ=0.0, fCenter=39.227276, fGain=0.0, lChannel=-1
BASS_FXSetParameters() returned: true
BASS_FXSetParameters() called with: handle = [-2147483473], params = [com.un4seen.bass.BASS_FX$BASS_BFX_PEAKEQ@ce6a3ed]
lBand=1, fBandwidth=1.6687073, fQ=0.0, fCenter=124.71512, fGain=0.0, lChannel=-1
BASS_FXSetParameters() returned: true
BASS_FXSetParameters() called with: handle = [-2147483473], params = [com.un4seen.bass.BASS_FX$BASS_BFX_PEAKEQ@a743222]
lBand=2, fBandwidth=1.6687073, fQ=0.0, fCenter=396.50626, fGain=0.0, lChannel=-1
BASS_FXSetParameters() returned: true
BASS_FXSetParameters() called with: handle = [-2147483473], params = [com.un4seen.bass.BASS_FX$BASS_BFX_PEAKEQ@30be4b3]
lBand=3, fBandwidth=1.6687073, fQ=0.0, fCenter=1260.6107, fGain=0.0, lChannel=-1
BASS_FXSetParameters() returned: true
BASS_FXSetParameters() called with: handle = [-2147483473], params = [com.un4seen.bass.BASS_FX$BASS_BFX_PEAKEQ@1311a70]
lBand=4, fBandwidth=1.6687073, fQ=0.0, fCenter=4007.8542, fGain=0.0, lChannel=-1
BASS_FXSetParameters() returned: true
BASS_FXSetParameters() called with: handle = [-2147483473], params = [com.un4seen.bass.BASS_FX$BASS_BFX_PEAKEQ@a9691e9]
lBand=5, fBandwidth=1.6687073, fQ=0.0, fCenter=12742.154, fGain=0.0, lChannel=-1
BASS_FXSetParameters() returned: true
No error was reported in previous version, I have not touched the FX handling since a lot of time. I will continue investigating but it would help if you could provide information about which situations could trigger that error. Thanks.