I am adapting some very nice code that takes in a bunch of 15 or so sampled piano notes, like Eb3, F#4, B5, and then plays any note you ask of it, by pitch shifting the nearest sample.
I am running into trouble as I need to play a big bunch of notes simultaneously, and the iPhone just can't handle it. I guess a dozen concurrent FFTs is pushing it a bit.
so I want to pre-buffer everything. I can't see how to do this.
How can I catch the output of OpenAL (ie this line:)
alSourcePlay(source->sourceId);
and somehow pipe this into a buffer, or connect it up to some audio unit so I can intercept the render callback, etc? ie how can I get access to it in any way?
Sam