Incorrect latency reported by AVAudioNode

Originator:josipcavar04
Number:rdar://FB16330879 Date Originated:16.01.2025
Status:Open Resolved:No
Product:iOS/macOS Product Version:iOS 18, macOS 15
Classification:Bug Reproducible:Yes
 
1. Create a simple `AVAudioEngine` graph that contains `AVAudioUnitTimePitch`
2. Start the engine
3. Update `AVAudioUnitTimePitch`'s rate to e.g. 4
4. Query the latency using `AVAudioNode`'s `latency` property
5. Query the latency using `AUAudioUnit`'s `latency` property
6. Result: `AVAudioNode`s latency is incorrectly reported

Note: Sample project reproducing the issue attached to this report, but can also be found at: https://github.com/jcavar/examples/tree/master/IncorrectAVAudioNodeLatency

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at feedbackassistant.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!