Can't play Audio in RealityComposerPro

I hope to be able to display the USDA model in RealityComposerPro and play the Spatial Audio. I used RealityView to implement these contents:

RealityView{ content in
do {
let entity = try await Entity(named: "isWateringBasin", in: RealityKitContent.realityKitContentBundle)
content.add(entity)

guard let entity = entity.findEntity(named: "SpatialAudio"),
let resource = try? await AudioFileResource(named: "/Root/isWateringBasinAudio_m4a",
from: "isWateringBasin.usda",
in: RealityKitContent.realityKitContentBundle) else { return }

let audioPlaybackController = entity.prepareAudio(resource)
audioPlaybackController.play()
} catch {
print("Entity encountered an error while loading the model.")
return
}
}

but when I ran it, I found that although can displayed the model normally, Spatial Audio failed to play normally. I hope to get guidance, thank you!

I have found that the audioPlaybackController to be non-functional for me. Since I cold not figure out how to make it active, I just use the Entity's commands .playAudio(audioResource) and .stopAllAudio(). Too bad, I wanted to use the controller's fade method.

-mike

Can't play Audio in RealityComposerPro
 
 
Q