Author Topic: dsp effect not being removed.  (Read 121 times)

Tom1984

  • Guest
dsp effect not being removed.
« on: 24 Jul '17 - 04:45 »
Delphi 7.
var
  rev: BASS_DX8_REVERB;
  fx: hfx;

  if Checkbox3.Checked then
  begin
    BASS_ChannelRemoveFX(BStreamFX, fx);
    rev.fInGain:= 0;
    rev.fReverbMix:= -8;
    rev.fReverbTime:= 1000;
    rev.fHighFreqRTRatio:= 0.001;
    fx:= BASS_ChannelSetFX(BStreamFX,BASS_FX_DX8_REVERB,HIGH_PRIORITY_CLASS);
    BASS_FXSetParameters(fx, @rev);
  end else
      BASS_ChannelRemoveFX(BStreamFX, fx);


The effect never gets removed. It is added to again and again. This is a tempo stream.

Additionally, your documentation has a slight error.   Bass_Pos_Byte is referred to as  Bass_Pos_Bytes


Tom1984

  • Guest
Re: dsp effect not being removed.
« Reply #1 on: 24 Jul '17 - 04:46 »
lol... I used local variable.  ;D

Well, the documentation issue is real at least.