Please help, need an example of IIRFilter

Hi,

before updating Juce i could add a filter in a simple way and directly;

IIRFilter.makePeakFilter ( ... )


but now i don't understand how to manage this with the IIRCoefficients class.

this is what i tried, but i can't here any output:
 

juce::IIRFilter filterL, filterR;
IIRCoefficients coL, coR;


processingBuffer ( ... )
{

coL.makeHighShelf( ... );
coR.makeHighShelf( ... );

filterL.setCoefficients(coL);
filterR.setCoefficients(coR);

delayBufferL [Counter] = filterL.processSingleSampleRaw( delayBufferL [Counter] );
delayBufferR [Counter] = filterR.processSingleSampleRaw( delayBufferR [Counter] );

}

 

thanks
Jens