AVAudioPlayerNode stopped when adding a node

Originator:josipcavar04
Number:rdar://FB11883066 Date Originated:18.12.2022
Status:Open Resolved:No
Product:iOS, macOS Product Version:iOS 15
Classification:Bug Reproducible:Yes
 
1. Create `AVAudioPlayerNode`

2. Connect it to `AVAudioEngine`'s `mainMixer` node 

3. Start the engine and start the player

4. Connect any effect (e.g. reverb) to player and engine's main mixer 

5. Expected: Player keeps playing and sound is affected by new effect

6. Actual: Player is stopped, which breaks the audio flow 


Example project (attached here too): https://github.com/jcavar/examples/tree/master/AudioPlayerCleanupBug

Related report (the same issue with `AVAudioSamplerUnit`):

https://feedbackassistant.apple.com/feedback/11331022

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.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!