1

I have a button that triggers a sound on an iphone. I am using AudioUnits to minimize the latency.

Right now, if the user taps the button twice, the sound do not overlap and the first triggered sound is cut by the second sound. Is there an easy way to let the (same) sound overlapping as many times as the user taps the buttons?

Thanks.

André.

4

1 回答 1

4

Leave the AudioUnit running continuously, using short buffers to minimize latency, and start to mix another copy of the sound into the existing stream every time the button is tapped.

于 2010-10-28T03:29:34.670 回答