How do you get positional audio to work in SceneKit?

前端 未结 2 1257
孤独总比滥情好
孤独总比滥情好 2021-02-04 10:59

I am having trouble getting positional audio to work in SceneKit. Starting with the SceneKit game template generated by Xcode I have added the following code to the end of the h

相关标签:
2条回答
  • 2021-02-04 11:22

    You should be able to get positional audio with source.shouldStream = false.

    0 讨论(0)
  • 2021-02-04 11:37

    As mentioned by Jed Soane, and confirmed by Apple in a Radar, the issue was my audio file was stereo instead of mono. Only mono audio files will work for positional audio.

    0 讨论(0)
提交回复
热议问题