On iPhone, I'm using an AudioUnit as a tone generator. Works fine.
However, when I flip the view (turn the back side forward to display an info screen), during the transition the generated tone crackles, both in Simulator and on Device. This happens only when the flipside view is displayed for the first time. Subsequent flips don't crackle.
The flipside view contains a UIWebView
displaying a local HTML file. (I didn't come up with another way to display rich text.) Maybe I should try to pre-render the view. How can I do this?
Or should I put the audio generation in a different thread? I thought, AUs are called asynchronously—as needed— anyway.