unable to use COMPRESSOR2

Started by bioz, 18 Jul '24 - 15:24

bioz

Hello,

I am trying to use the new compressor, BASSFXType.BASS_FX_BFX_COMPRESSOR2, on windows, and then on maui android.
For now I want to get it working on windows first. I am using dotnet 8

I saw a post on the forum relating to it:
https://www.un4seen.com/forum/?topic=9185.msg63751

When I try to use
fxHandle = Bass.BASS_ChannelSetFX(streamHandle, BASSFXType.BASS_FX_BFX_COMPRESSOR2, 0);the handle is 0, and the error is BASS_ERROR_ILLTYPE

I have tried
Bass.Net http://www.bass.radio42.com/
Bass.NetWrapper
and also ManagedBass https://github.com/ManagedBass/ManagedBass

but all give the same error.

The un4seen bass files I have that are copied into the build directory are
bass.dll - v2.4.17.0
bass_fx.dll - v2.4.12.6

Thank you




bioz

Magic, of course after I post I stumble across the fix.

Call this near the start of your code
Un4seen.Bass.AddOn.Fx.BassFx.BASS_FX_GetVersion();