错误:180:抛出异常('开发!'): - 和ERROR:> aqsrv> 70:异常陷入(空) - 错误-1 [英] ERROR: 180: EXCEPTION thrown ('dev!'): - and ERROR:> aqsrv> 70: Exception caught in (null) - Error -1
问题描述
每次我打电话给我的作用时间使用.wav文件我得到这些错误:
错误:180:抛出异常('开发!'): -
和
错误:> aqsrv> 70:异常陷入(空) - 错误-1
它总是发生在的打线()
。
它只是发生在IOS - 在Android上运行以及
功能:
函数SONIDO(){
VAR CONT = 0;
//console.log(arregloDetalles[cont].tVelocidad);
VAR intervalo =的setInterval(函数(){
如果(bnaddetener == 1){
clearInterval(intervalo);
}
如果(arregloDetalles [续] .click_clack == 1){
soundclick.play(); }其他{
soundclack.play();
的console.log(克拉克);
}
续++;
如果(续== arregloDetalles.length){
banderaclick = 1;
CONT = 0;
}
},arregloDetalles [续] .tVelocidad);
}
的.wav文件声明:
VAR soundclick = Titanium.Media.createSound({
网址:'/ sonidos /哔8.wav',
preLOAD:真
});
soundclick.addEventListener(完整,功能(E){soundclick.release();});VAR soundclack = Titanium.Media.createSound({
网址:'/ sonidos /哔7.wav',
preLOAD:真
});
soundclack.addEventListener(完整,功能(E){soundclack.release();});
好像正在试图获得输入设备的采样率。这不会在iOS模拟器的工作,你需要测试在真实设备上。
<一个href=\"https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator.html\" rel=\"nofollow\">https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator.html
every time I call my function to use .wav files I get these errors:
ERROR: 180: EXCEPTION thrown ('dev!'): -
and
ERROR:> aqsrv> 70: Exception caught in (null) - Error -1
it always happens in the line of play()
.
It only happens in IOS - on android it runs well.
Function:
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);
}
declaration of .wav files:
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(); });
Seems like is trying to get the input device sample rate. That will not work on iOS Simulator, you need to test on a real device.
这篇关于错误:180:抛出异常('开发!'): - 和ERROR:&GT; aqsrv&GT; 70:异常陷入(空) - 错误-1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!