//var sound = { 0:plus.audio.createPlayer( "daudio/0.aac"),
// 1:plus.audio.createPlayer( "daudio/1.aac"),
// 2:plus.audio.createPlayer( "daudio/2.aac"),
// 3:plus.audio.createPlayer( "daudio/3.aac"),
// 4:plus.audio.createPlayer( "daudio/4.aac"),
// 5:plus.audio.createPlayer( "daudio/5.aac"),
// 6:plus.audio.createPlayer( "daudio/6.aac"),
// 7:plus.audio.createPlayer( "daudio/7.aac"),
// 8:plus.audio.createPlayer( "daudio/8.aac"),
// 9:plus.audio.createPlayer( "daudio/9.aac"),
// star:plus.audio.createPlayer( "daudio/star.ogg"),
// shap:plus.audio.createPlayer( "daudio/shap.ogg")
// };
// sound[pass[0]].play(function () {
// console.log( "Audio play success!"+pass[0]);
// sound[pass[0]].stop();
// });
// owner.sleep(340);
//
// sound[pass[1]].play(function () {
// console.log( "Audio play success!"+pass[1]);
// sound[pass[1]].stop();
// });
// owner.sleep(340);
//
// sound[pass[2]].play(function () {
// console.log( "Audio play success!"+pass[2]);
// sound[pass[2]].stop();
// });
// owner.sleep(340);
//
// sound[pass[3]].play(function () {
// console.log( "Audio play success!"+pass[3]);
// sound[pass[3]].stop();
// });
// owner.sleep(340);
//
// sound[pass[4]].play(function () {
// console.log( "Audio play success!"+pass[4]);
// sound[pass[4]].stop();
// });
// owner.sleep(340);
//
// sound[pass[5]].play(function () {
// console.log( "Audio play success!"+pass[5]);
// sound[pass[5]].stop();
// });
// owner.sleep(340);
//
// sound[pass[6]].play(function () {
// console.log( "Audio play success!"+pass[6]);
// sound[pass[6]].stop();
// });
// owner.sleep(340);
//
// sound[pass[7]].play(function () {
// console.log( "Audio play success!"+pass[7]);
// sound[pass[7]].stop();
// });
// owner.sleep(340);
//
// sound[pass[8]].play(function () {
// console.log( "Audio play success!"+pass[8]);
// sound[pass[8]].stop();
// });
// owner.sleep(340);
当播放的声音不同时没问题,但是曾经播放过的声音,再次调用播放,无法播放,必须调用createPlayer再生一次
xiaoxiyao
这个问题现在依然存在
2017-12-02 23:00