Any advice on Sound Effects format?

Started by neo187, January 09, 2012, 08:57:33 PM

Previous topic - Next topic

neo187

Nobody seems to have asked this on this forum, and I am probably thinking too ambitiously here considering that I am already hitting the "out of memory" error at times when I am not careful... But has anybody implemented sound effects consistently in their Android game? And I am thinking of several very short sound effects as opposed to one looping background track....

In that case is there a library/implementation that you guys may recommend or a specific file format for the ultra tiny Android memory? (i'm on 2.1)

Thank you very much!

EgonOlsen

I'm using OGG all the time. Mainly because there's a bug in Android (at least in some versions...) that can cause the loading of an MP3 to run into an infinite loop.

neo187

Thanks Egon

In your exeprience, does the use of sound effects impact performance greatly? If you think of a lower end device....

EgonOlsen

I developed Alien Runner on a Samsung Galaxy, which uses the same hardware as the G1, i.e. first generation Android hardware. I didn't notice any slowdowns from playing a few sounds. They will be converted from ogg to pcm at load time anyway. I did notice an impact when streaming music from an mp3/ogg file though, because it decodes the music at runtime.