Playing delay different between iPhone and iPod
Hello,
can someone help me with this problem? There is a difference between playing an mp3 file on an iPhone than on an iPod. I have a button that plays a sound when it is pushed. On the iPod the sound plays instantly, but on the iPhone it takes almost 1 sec. until it plays.
Is there a trick to change that behaviour?
var win = Titanium.UI.createWindow();
var btn = Titanium.UI.createButton({
width:200,
height:30
});
win.add(btn);
var sound = Titanium.Media.createSound({
url:'mp3/birds.mp3'
});
btn.addEventListener('click', function(){
sound.play();
})
win.open();