0
0

I’m working with the generatetone sample (4.32.04) and I notice a small click/static when playing a sine wave (or triangle) and the channel stops or pauses. I’ve tested this on several devices using iOS 4.1, 3.2.2 and 3.1.3 with the same results.

I’m trying to adapt this code to play a series of pulsed tones through headphones for a hearing test application and I need to have the tones play smoothly.

Any ideas?

  • You must to post comments
0
0

What you are hearing is the sine wave sharply cutting from where it is up to in the cycle to 0. You can avoid this by allowing the volume to come to zero before stopping your sound. e.g. you could use Channel::setVolume or Channel::setMute to achieve this.

  • You must to post comments
0
0

Channel::setVolume worked perfectly – thanks for the tip.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.