Author Topic: Any advice on Sound Effects format?  (Read 2774 times)

Offline neo187

  • int
  • **
  • Posts: 73
    • View Profile
Any advice on Sound Effects format?
« 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!

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Any advice on Sound Effects format?
« Reply #1 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.

Offline neo187

  • int
  • **
  • Posts: 73
    • View Profile
Re: Any advice on Sound Effects format?
« Reply #2 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....

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Any advice on Sound Effects format?
« Reply #3 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.