Well it's not final yet because everything is hardcoded. :) It's also in D, not C or C++, so I don't know how useful that would be to you. When I'm done with it and if you're interested I'll give you the link (I'll use it for a relevant PortAudio example on github).