Gooday all, i have a problem 😥
I want a DSP with a 3 band equalizer (Bass, Mid & Treble) in C++ to use seperate in each FMod stream.
But the only code i have is this C part, and i don’t know how to use.
[code:2k62ubn6]Removed read below[/code:2k62ubn6]
This is not true, the shibatch EQ is HIGHLY optimised and need a litte cpu. Note that you can use the code from the Foobar2000’s SDK player, Peter Pawlowski (the author) optmised a little bit the code and added 32/64 bits resolution to the EQ, get the SDK [url=http://www.foobar2000.org/SDK_0.7b36.zip:1k3j94mr]here[/url:1k3j94mr].
It seems to be the sourcecode of the Eq-XMMS plugin
Look in the eq.c file, you have to precalculate the gain/Q frequency like this :
void set_eq_value(float value, gint index, gint chn)
/* Map the gain and preamp values */
if (index >= 0)
gain[index][chn] = 0.0299995 * value +
0.001 * value * value;
preamp[chn] = 0.5 + 0.025 * value;
Don’t forget to call init_iir before doing anything 😉
Hmm OH JOY 😆
me found out what the problem was in shibatch DSP 8)
in dsp_superequ.cpp you need to set: [b:wt4l8ed0]equ_init( 8 )[/b:wt4l8ed0] instead of the default equ_init(14) damn it’s working great now with FMOD.
No more Eq-XMMS for me !!!!!
Me gonna edit Shibatch Super Equalizer !!!!!
First with equ_init(14) my P4 2.53 CPU went thru the roof when setting equalizer, now it holds on 10% when i’m setting equalizer realtime (without to press [preview])
Soon i will place my modification online in here.
Ok here is the source:
DON’T FORGET to read the included:
Keep in mind that the source of ShiBatch Super Equalizer has LGPL
and give Shibatch all credit he deserves in your application !
Please login first to submit.