|
@@ -29,6 +29,9 @@ export function useAudio() {
|
|
sound.on('playerror',(err)=>{
|
|
sound.on('playerror',(err)=>{
|
|
alert(err)
|
|
alert(err)
|
|
})
|
|
})
|
|
|
|
+ sound.on('loaderror',(err)=>{
|
|
|
|
+ alert(err)
|
|
|
|
+ })
|
|
sound.once("load", function () {
|
|
sound.once("load", function () {
|
|
let id = sound.play();
|
|
let id = sound.play();
|
|
if (id) {
|
|
if (id) {
|