Hi After IOS 16 update users are experiencing audio distortion when attempting to change Pitch and/or Tempo in the app which uses AVAudiounitTimepitch to achieve this. Prior to IOS 16 it has worked quite admirably. I see suggestions to change the algorithm used but am able to achieve this. Any pointers are appreciated
This was solved with the following code:
var componentDescription = AudioComponentDescription()
componentDescription.componentType = kAudioUnitType_FormatConverter
componentDescription.componentSubType = kAudioUnitSubType_TimePitch
let rf = AVAudioUnitTimePitch(audioComponentDescription:componentDescription)