Filters in Accelerate Framework
Filters in Accelerate Framework
- Subject: Filters in Accelerate Framework
- From: "Support (One Red Dog)" <email@hidden>
- Date: Wed, 25 Jan 2012 21:36:01 +1100
Hi
I've been experimenting with trying to use the Accelerate framework to optimise a filter. So far I've managed to get vDSP_deq22 working for a 2-pole filter, but I'm stuck at trying to cascade that into 4-poles. My current implementation adds the 2nd biquad for the 4-poles in a sample at a time loop. I figure the vDSP_deq22 is basically doing this but nicely optimised in SSE.
void maybe_vDSP_deq22(float *in, float *coeff, float *out, unsigned int samples) { for (int n = 2; n < samples+2; ++n) { out[n] = in[(n-0 )] * coeff[0] + in[(n-1 )] * coeff[1] + in[(n-2 )] * coeff[2] - out[(n-3+2)] * coeff[3] - out[(n-4+2)] * coeff[4]; } }
I was wondering if anyone has tried this and how it can be cascaded?
thanks peter |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden