sounds in Android
Monkey Targets Forums/Android/sounds in Android
| ||
Hello everyone .. could u plz tell me what is the sound format for android .. I generate my game to android .. but sounds not working on it .. I used three format which are .. OGG - WMV - MP3 ..!! shall I remove two of them to let it work .. or there is another suitable format for android that I forgot to include it .. ?? Plz guys replay me ASAP .. Thank u .. |
| ||
I just use ogg |
| ||
ogg should work always.... Last week we had a post here, where somebody wrote about sound problems. At the end he found out, that maybe too big sound files caused the problem. Tell us a little bit more about the sounds... stereo? 24bit? 22100kHz? Lenght in msec? Made with Audacity? Shrinked to which compression level? |
| ||
There is alot of sounds in my game ,, and I used timers to begin and end it one after one as I need .. it is not that much big .. maybe the longest one take 10000 msec ... :\ |
| ||
From the help file: Android : ...Sounds to be used ... must be less than 1MB in length. Longer sounds can be played using the music commands. ...not all audio formats are supported by all targets: wav : glfw, android, ios, xna (sounds) mp3 : flash, android, ios, xna (music) m4a : flash, android (music), ios wma : xna (music) ogg : android Finally, when designing for low performance hardware it's a good idea to try and minimize the number of channels used. |
| ||
You should make the sounds which you use with PlaySound as SMALL as you possible can make them in OGG format. If you have something big(ger), it'll work with PlayMusic, but you can only play 1 PlayMusic track at a time, so it's only good for background. But all my issues disappeared when I just made the sounds really small (in kilobytes). |
| ||
It works fine now .. Thank you so much guys .. Monkey coder is the best <3 |