mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 03:22:39 +08:00
fix jsb-audio (#2649)
This commit is contained in:
+4
-1
@@ -122,7 +122,10 @@ cc.Audio = function (src) {
|
||||
}
|
||||
path = clip._nativeAsset;
|
||||
}
|
||||
path = cc.loader.md5Pipe.transformURL(path);
|
||||
var md5Pipe = cc.loader.md5Pipe;
|
||||
if (md5Pipe) {
|
||||
path = md5Pipe.transformURL(path);
|
||||
}
|
||||
return audioEngine.play2d(path, loop, volume);
|
||||
};
|
||||
audioEngine.playMusic = function (clip, loop) {
|
||||
|
||||
Reference in New Issue
Block a user