www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: neo187 on January 09, 2012, 08:57:33 pm

Title: Any advice on Sound Effects format?
Post by: neo187 on January 09, 2012, 08:57:33 pm
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!
Title: Re: Any advice on Sound Effects format?
Post by: EgonOlsen on January 09, 2012, 10:22:35 pm
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.
Title: Re: Any advice on Sound Effects format?
Post by: neo187 on January 10, 2012, 12:45:22 pm
Thanks Egon

In your exeprience, does the use of sound effects impact performance greatly? If you think of a lower end device....
Title: Re: Any advice on Sound Effects format?
Post by: EgonOlsen on January 10, 2012, 04:49:59 pm
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.