Getting error with BASS_FXSetParameters
Posted: Fri May 18, 2018 12:39 pm
				
				I am trying to apply a high pass filter with the Bass/BassFX libraries from Un4seen. But BASS_FXSetParameters returns errorcode 20 (BASS_ERROR_ILLPARAM). Does anybody have an idea what i am doing wrong?
			Code: Select all
XIncludeFile "bass.pbi"
XIncludeFile "bassfx.pbi"
OpenWindow(0, #PB_Ignore, #PB_Ignore, 610, 220, "Test") 
BASS_Init(-1, 44100, 0, 0, #Null)
Filename.s = "test.mp3"
chan = BASS_StreamCreateFile(0, @Filename, 0, 0, #BASS_UNICODE) 
Dim param.BASS_BFX_BQF(0)
param(0)\lFilter = 1
param(0)\fCenter = 100 
param(0)\fBandwidth = 0 
param(0)\fQ = 0.7 
param(0)\lChannel = -1
fx = BASS_ChannelSetFX(chan, #BASS_FX_DX8_PARAMEQ, 0) ; add a filter to a stream
BASS_FXSetParameters(fx, param(0)) ; apply the filter parameters