gpt4 book ai didi

javascript - Soundmanager 不会播放声音

转载 作者:行者123 更新时间:2023-11-30 10:50:19 28 4
gpt4 key购买 nike

function doclick(){  
soundManager.createSound({
id: 'mySound',
url: 'http://localhost/htmlshooter/wav/gun.wav',
autoLoad: true,
autoPlay: true,
volume: 100
});

mySound.play();
}

首先它说:

SMSound._onload(): "mySound" failed to load? - http://localhost/htmlshooter/wav/gun.wav SMSound.play(): "mySound" is starting to play SMSound.play(): "mySound" is loading - attempting to play..

然后:

soundManager.createSound(): mySound exists soundManager.createSound(): mySound (http://localhost/htmlshooter/wav/gun.wav)

但实际上,它根本不播放任何声音。

最佳答案

我认为 Soundmanager2 不能播放 Wav 文件。您可以尝试在 SM2 上启用 HTML5 支持吗?

关于javascript - Soundmanager 不会播放声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5777066/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com