UPDATE: It turns out my app only loads Bass.Net.dll, bass.dll, and bassopus.dll, so it seems this problem is due to bass_fx.dll not being loaded. As far as I can tell I have all the latest versions of the 32 bit DLLs (see attached). Why would bass.dll not load bass_fx.dll?
UPDATE2: I resolved the issue by calling Un4seen.Bass.AddOn.Fx.BassFx.LoadMe(); I was under the false impression that bass_fx is loaded automatically.
I am getting an error when trying to use any of the BASS_FX_BFX_XXX effects.
With this code, t2 is 0 and error is Bass.BASSError.BASS_ERROR_ILLTYPE:
var t1 = Bass.BASS_StreamCreateFile(@"C:\test.mp3", 0, 0, BASSFlag.BASS_DEFAULT);
var t2 = Bass.BASS_ChannelSetFX(t1, BASSFXType.BASS_FX_BFX_BQF, 0);
var error = Bass.BASS_ErrorGetCode(); // always BASS_ERROR_ILLTYPE
This code works:
var t1 = Bass.BASS_StreamCreateFile(@"C:\test.mp3", 0, 0, BASSFlag.BASS_DEFAULT);
var t2 = Bass.BASS_ChannelSetFX(t1, BASSFXType.BASS_FX_DX8_ECHO, 0);
var error = Bass.BASS_ErrorGetCode(); // OK
It seems that DX8 effects work but BASS_FX_BFX_XXX don't. I am attaching an image which shows all the latest bass file versions in my executable folder (I have bass_fx). This is under Win32 and my init code does the following:
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_UPDATEPERIOD, 20);
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_BUFFER, 125);
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_FLOATDSP, 1);
Any ideas how to get this to work?