Glitching caused by rapid volume changes
I am controlling the volume of a looped sample by setting the volume of an AEAudioUnitChannel object.
I would like to be able to make rapid changes to the volume of this AEAudioUnitChannel object, but am hearing glitches when the changes are too rapid.
I assume the way to reduce the glitching is to interpolate from the current volume level to the desired volume level, and to perform this interpolation at a rate higher than the rate at which the desired volume level is being updated.
Given that the desired volume level is being updated approximately every 10 msecs, I am wondering if there is already some kind of setup in TAAE for interpolating values at or close to the audio sampling rate?
I have been searching this forum for posts on this topic but have not found anything, so any suggestions would be very gratefully received!