i make a game with phonegap. But i have a little problem with sound.
Every time, when i play a sample, i get a little interrupt. Only some
milliseconds, but while playing the game this is very annoying. In the
game coins can be collected, every time the player gets one, i play a
"pling". And the game freezes for some ms.
I have tried to use wav instead of mp3. No change.
I have tried to remove callback functions and use only
coin = new Media('sfx/coin.wav');
and
coin.play();
But nothing helps. I havent tested lately, but i think on android i
hadn't this problem. I use PhoneGap 1.1.0 at moment. Tested on iPad2
and iPod Touch with iOS 4 and 5.
Has anyone an idea, how i can play ingame audio?
best regards
Horst
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
thanks, but i get the halt every time, i play the sound. Not only the
first time. In my example above the coin=new Media... is called in
init routine and the coin.play() every time i play the sound. So i
think it should already be loaded after first play.
best regards
Horst
i have already read your article: http://cubiq.org/build-and-publish-an-html5-game-for-ipad-part-3
But i have submitted my game yesterday to apple. My testers are
satisfied with the performance.
best regards
Horst