Procedural Audio in ARKit – Anyone got AVAudioSourceNode working via SCNAudioPlayer?
Hi all,
Just reaching out to the AirWiggles community to see if anyone here has cracked this…
I’m working on an ARKit project and trying to attach procedural audio to a SceneKit node using AVAudioSourceNodevia SCNAudioPlayer. The aim is to spatialise real-time generated sound in 3D space — but I can’t get any audio to play at all using this setup.
I’ve posted the full details on Stack Overflow and the Apple Developer Forums, but so far haven’t had any replies:
Stack Overflow post: https://stackoverflow.com/questions/79539254/attaching-procedural-audio-to-an-arkit-scnnode
Apple Developer Forum thread: https://developer.apple.com/forums/thread/780169
The procedural audio works fine outside of SceneKit, but once routed through SCNAudioPlayer, it’s completely silent with no errors. Static audio files play fine — just not procedural ones.
Before I give up on this route, has anyone in the audio community here managed to get AVAudioSourceNode working inside an ARKit SceneKit environment? Or come across this issue before?
Would love to hear from anyone who’s tried or solved this — or even knows whether this is a known limitation.
Thanks so much,
Rich