Author Topic: On BASS_FX's PEAKEQ, how do you free a band's resources?  (Read 127 times)

jpf

  • Posts: 75
It looks like you create a new band on the first call to BASS_FXSetParameters using its lBand
 number. Is it so? Then subsequent calls to BASS_FXSetParameters just overwrite the parameters for that band, I guess.

But what if I want to release a certain band and all its resources?

I think setting lChannel = BASS_BFX_CHANNONE would kill or at least lower the band's CPU usage, but what about memory usage?

Ian @ un4seen

  • Administrator
  • Posts: 22241
It isn't possible to remove bands. You would need to recreate the effect for fewer bands, ie. call BASS_ChannelRemoveFX and BASS_ChannelSetFX again. Alternatively, you can prevent a band having any effect by setting their "fGain" parameter to 0 (note that won't totally eliminate their CPU usage). Each band uses very little memory (around 64 bytes), so you don't really need to be concerned about that.

jpf

  • Posts: 75
Ok, I'll do it that way. Thanks !