Jsb.AudioEngine is undefined

Hi

I moved to cocos2d 3.8 but my projects were generated for 3.7
I have this problem:
cc.log(jsb.AudioEngine.getVolume());

and I have jsb.AudioEngine is undefined error.
How to use it correctly? I’m trying to run it on iOS.
Preload, or play2d methods also don’t work.

if you are using cocos2d js this should be cc.audioEngine.getMusicVolume() or cc.audioEngine.getEffectsVolume() depending on what you want.

I don’t think so. You’re sure? the new audio engine I think is jsb.AudioEngine… cc.audioEngine doesn’t have preload method…

you are right, I’ve found this test in the 3.8 release: https://github.com/cocos2d/cocos2d-x/blob/v3/tests/js-tests/src/NativeTest/AudioEngineTest.js