FWIW (perhaps I misunderstand this thread), I created
* sound.mp3
* sound.ogg
and then added to helloworld.js:
var sound = new lime.audio.Audio('sound.mp3');
goog.events.listen(target,['mousedown','touchstart'],function(e){
if (sound.isLoaded() && !sound.isPlaying()) {
sound.play();
}
e.swallow(['mouseup','touchend'],function(){
if (sound.isPlaying()) {
sound.stop();
}
});
}
And sound worked in both FF (PC) and on my iPhone 3GS. Terribly slow
UI when
sound.play is called on iPhone, but correct. iOS 4.2.1
(8C148)