Author Topic: unable to use COMPRESSOR2  (Read 99 times)

bioz

  • Posts: 2
unable to use COMPRESSOR2
« on: 18 Jul '24 - 15:24 »
Hello,

I am trying to use the new compressor,
Code: [Select]
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
Code: [Select]
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



« Last Edit: 18 Jul '24 - 15:44 by bioz »

bioz

  • Posts: 2
Re: unable to use COMPRESSOR2
« Reply #1 on: 18 Jul '24 - 15:37 »
Magic, of course after I post I stumble across the fix.

Call this near the start of your code
Code: [Select]
Un4seen.Bass.AddOn.Fx.BassFx.BASS_FX_GetVersion();