Good advice from PP there, but you’ll also want to avoid doing memory allocations in processBlock and look for opportunities to vectorise your code (though it looks like the wdf tree implementation only allows per-sample processing unfortunately).
If you haven’t seen it before, then have a good read of this: Ross Bencina » Real-time audio programming 101: time waits for nothing
