Creator3.6.1打包iOS原生,看广告之后回到游戏播音效崩溃

V/AudioCache (193): id=4 _pcmData alloc: 0x15c968000
V/AudioCache (226): pcm buffer was loaded successfully, total frames: 35712, total read frames: 35712, adjust frames: 0, remainingFrames: 0
V/AudioCache (235): id=4 generated alGenBuffers: 2430 for _pcmData: 0x15c968000
V/AudioCache (236): id=4 _pcmData alBufferData: 0x15c968000
E/AudioPlayer (156): OpenAL error 0xA003 in /Applications/CocosCreator/Creator/3.6.1/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/audio/apple/AudioPlayer.mm play2d 156

E/AudioPlayer (158): OpenAL error 0xA003 in /Applications/CocosCreator/Creator/3.6.1/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/audio/apple/AudioPlayer.mm play2d 158

E/AudioPlayer (160): OpenAL error 0xA003 in /Applications/CocosCreator/Creator/3.6.1/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/audio/apple/AudioPlayer.mm play2d 160

E/AudioPlayer (162): OpenAL error 0xA003 in /Applications/CocosCreator/Creator/3.6.1/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/audio/apple/AudioPlayer.mm play2d 162

E/AudioPlayer (200): OpenAL error 0xA003 in /Applications/CocosCreator/Creator/3.6.1/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/audio/apple/AudioPlayer.mm play2d 200

E/AudioPlayer (208): bool cc::AudioPlayer::play2d():alSourcePlay error code:a003
Assertion failed: (res), function play2dImpl, file AudioEngine-inl.mm, line 402.

搞定了。

AudioEngine-inl.m第98行改为:
BOOL success = [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];

1赞

这种是引擎的bug吗还是因为什么原因导致的?