Commit 3085284c authored by yu's avatar yu

1

parent 7256b71c
......@@ -545,6 +545,7 @@ let pg = {
return new Promise((resolve, reject) => {
if (!audio_url) return resolve(null);
cc.assetManager.loadRemote(audio_url, (err, audioClip: any) => {
cc.audioEngine.stopAllEffects();
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
cc.audioEngine.setFinishCallback(audioId, () => {
cb && cb();
......
......@@ -30,7 +30,7 @@ export const defaultData = {
}
],
"npcTitle": "hi fiddler",
"npcAudio": "",
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3",
// "npcAudio": "",
"npcAudio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3",
"npcAudioName": "bear_2.mp3"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment