Using BASS_FX 2.4.9 on Raspberry Pi to code an EQ takes up 100% CPU and music start to stutter.
Disabling to EQ and all works fine.
I am using the hard float version.
Is it doable to code a working EQ on the Raspberry Pi ?
procedure TFormEQ.SetEQ;
var mystream: HStream;
begin
case stream of
1: mystream:=genBassStream1;
2: mystream:=genBassStream2;
3: mystream:=CDStream;
4: mystream:=Reversestream;
5: mystream:=Radiostream;
end;
PreVolume.lChannel:=BASS_BFX_CHANALL;
PreVolume.fVolume:=1;
FxEqualizer[0]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_VOLUME,1);
FxEqualizer[1]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
FxEqualizer[2]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
FxEqualizer[3]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
FxEqualizer[4]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
FxEqualizer[5]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
FxEqualizer[6]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
FxEqualizer[7]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
FxEqualizer[8]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
FxEqualizer[9]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
FxEqualizer[10]:=BASS_ChannelSetFX(mystream,BASS_FX_BFX_PEAKEQ,1);
PreVolume.lChannel:=BASS_BFX_CHANALL;
PreVolume.fVolume:=Trackbar1.Position/100;
BASS_FXSetParameters(FxEqualizer[0],@PreVolume);;
Equalizer.fGain:=TB_EQ1.Position;
Equalizer.fBandwidth:=1;
Equalizer.fCenter:=32;
Equalizer.lBand:=10;
Equalizer.lChannel:=BASS_BFX_CHANALL;
BASS_FXSetParameters(FxEqualizer[1],@Equalizer);
Equalizer.fGain:=TB_EQ2.Position;
// Equalizer.lBand:=2;
Equalizer.fCenter:=64;
BASS_FXSetParameters(FxEqualizer[2],@Equalizer);
Equalizer.fGain:=TB_EQ3.Position;
// Equalizer.lBand:=3;
Equalizer.fCenter:=128;
BASS_FXSetParameters(FxEqualizer[3],@Equalizer);
Equalizer.fGain:=TB_EQ4.Position;
// Equalizer.lBand:=4;
Equalizer.fCenter:=256;
BASS_FXSetParameters(FxEqualizer[4],@Equalizer);
Equalizer.fGain:=TB_EQ5.Position;
// Equalizer.lBand:=5;
Equalizer.fCenter:=512;
BASS_FXSetParameters(FxEqualizer[5],@Equalizer);
Equalizer.fGain:=TB_EQ6.Position;
// Equalizer.lBand:=6;
Equalizer.fCenter:=1024;
BASS_FXSetParameters(FxEqualizer[6],@Equalizer);
Equalizer.fGain:=TB_EQ7.Position;
// Equalizer.lBand:=7;
Equalizer.fCenter:=2048;
BASS_FXSetParameters(FxEqualizer[7],@Equalizer);
Equalizer.fGain:=TB_EQ8.Position;
// Equalizer.lBand:=8;
Equalizer.fCenter:=4096;
BASS_FXSetParameters(FxEqualizer[8],@Equalizer);
Equalizer.fGain:=TB_EQ9.Position;
// Equalizer.lBand:=9;
Equalizer.fCenter:=8192;
BASS_FXSetParameters(FxEqualizer[9],@Equalizer);
Equalizer.fGain:=TB_EQ10.Position;
// Equalizer.lBand:=10;
Equalizer.fCenter:=16384;
BASS_FXSetParameters(FxEqualizer[10],@Equalizer);
end;