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.
- kirkus asked 6 years ago
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.
Please login first to submit.