gpt4 book ai didi

javascript - 错误 : 180: EXCEPTION thrown ('dev!' ): - and ERROR:> aqsrv> 70: Exception caught in (null) - Error -1

转载 作者:塔克拉玛干 更新时间:2023-11-02 10:01:56 24 4
gpt4 key购买 nike

每次我调用我的函数来使用 .wav 文件时,我都会收到这些错误:

ERROR: 180: EXCEPTION thrown ('dev!'): -

ERROR:> aqsrv> 70: Exception caught in (null) - Error -1 

它总是发生在 play() 的行中。

它只发生在 IOS - 在 android 上它运行良好。

功能:

function sonido() {
var cont=0;
//console.log(arregloDetalles[cont].tVelocidad);
var intervalo=setInterval(function() {
if(bnaddetener==1){
clearInterval(intervalo);
}
if(arregloDetalles[cont].click_clack==1) {
soundclick.play();

} else {
soundclack.play();
console.log("Clack");
}
cont++;
if(cont==arregloDetalles.length) {
banderaclick=1;
cont=0;
}
} ,arregloDetalles[cont].tVelocidad);
}

.wav 文件的声明:

var soundclick = Titanium.Media.createSound({
url:'/sonidos/beep-8.wav',
preload:true
});
soundclick.addEventListener('complete', function(e) { soundclick.release(); });

var soundclack = Titanium.Media.createSound({
url:'/sonidos/beep-7.wav',
preload:true
});
soundclack.addEventListener('complete', function(e) { soundclack.release(); });

最佳答案

似乎是在尝试获取输入设备的采样率。这在 iOS 模拟器上不起作用,您需要在真实设备上进行测试。

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator.html

关于javascript - 错误 : 180: EXCEPTION thrown ('dev!' ): - and ERROR:> aqsrv> 70: Exception caught in (null) - Error -1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28995254/

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