new ARKit sample with positional Audio

There is a new ARKit sample called Audio in ARKit that can be downloaded from the ARKit page https://developer.apple.com/arkit/


This sample code demonstrates how to use SceneKit's positional audio feature in ARKit.

Replies

I just tested this sample and I can't get the audio to play.


How I tested this was:

1. Place cup on first detected surface

2. Rotate device so that cup is out of view

3. Audio is not heard


I'm using an iPhone SE and I'm on XCode 9 beta 5.

Also tried testing on an iPhone 7 and I can't hear any audio. Please advise.

The audio in Audio in ARKit is tested and working on iPhone 7 Plus running iOS 11 beta 9. Check your mute switch; also ensure your volume is up in Control Center.

Your steps 1-3 are the right process. Can you confirm that audio is not muted with the phone's hardware switch and that your volume is up in Control Center?

It appears that the issue was that I initally had the mute switch on, launched the app, and while the app is open, turn the mute switch off. The app works just fine and audio is played if the mute switch is off before launching the app.

That's not the expected behavior so I tried to recreate the issue but it failed to reproduce. I'm running iOS 11 beta 8 on an iPhone 6s. Are you witnessing this problem on iPhone 7? And which beta?