iDevGames Forums
What file sound format, sound format and library do you use? - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: What file sound format, sound format and library do you use? (/thread-1998.html)



What file sound format, sound format and library do you use? - riruilo - Dec 23, 2008 03:28 PM

Hi dudes!

I would like to know your opinions.

I'm going to use FMOD on my iPhone, as PC version always worked fine for me.
Do you use MP3 or WAV? maybe mp3 requires a lot of processing and time, and maybe wav requires a lot of space.

What quality do you use, 22 or 44khz?? 8 or 16 bits??? stereo or mono??
I think the iPhone is mono unless you use headphones, am I right?

What do you think?
Thanks.


What file sound format, sound format and library do you use? - AnotherJake - Dec 23, 2008 05:44 PM

mp3 and aac/mp4 are decoded in specialized hardware on iPhone, and it is *very* efficient. WAV takes up way too much disk space for my tastes for longer sounds like music, but it's ideal for short sounds like laser fire. I don't know a darn thing about FMOD, but you will probably need to use iPhone API's (specifically, Audio Queues) to play mp3/aac/mp4 through the specialized hardware.


What file sound format, sound format and library do you use? - riruilo - Dec 24, 2008 01:50 AM

AnotherJake Wrote:mp3 and aac/mp4 are decoded in specialized hardware on iPhone, and it is *very* efficient. WAV takes up way too much disk space for my tastes for longer sounds like music, but it's ideal for short sounds like laser fire. I don't know a darn thing about FMOD, but you will probably need to use iPhone API's (specifically, Audio Queues) to play mp3/aac/mp4 through the specialized hardware.

Thanks!

What MP3 format do you use? (mode, bitrate...)


What file sound format, sound format and library do you use? - AnotherJake - Dec 24, 2008 07:19 AM

Whatever sounds good and is relatively small. Probably 44.1 at 160 kbps or so.


What file sound format, sound format and library do you use? - jaguard - Dec 25, 2008 02:05 PM

You don't mind spending $500 for something you can easily do without it? It was alright for me to pay $100 when I used FMOD for a PC game, but it doesn't look like it cost $500, since iphone API and SoundEngine from Crashland sample does perfectly without.

Apart from that, I don't think you have a choise of what to use. WAVs are too big, you can't use it for music.


What file sound format, sound format and library do you use? - riruilo - Dec 25, 2008 03:00 PM

jaguard Wrote:You don't mind spending $500 for something you can easily do without it? It was alright for me to pay $100 when I used FMOD for a PC game, but it doesn't look like it cost $500, since iphone API and SoundEngine from Crashland sample does perfectly without.

Apart from that, I don't think you have a choise of what to use. WAVs are too big, you can't use it for music.

Do you really think it is not necessay fmod? (I have no idea about how to play sounds on the iphone at the moment, so I don't know if it is easy or not, and I use fmod on pc and it is really easy). Obviusly, I prefer saving 500$ Wink

By the way, what is "SoundEngine from Crashland"?

Thanks a lot for your help.


What file sound format, sound format and library do you use? - ricardoquesada - Dec 26, 2008 10:25 AM

riruilo Wrote:Hi dudes!

I would like to know your opinions.

I'm using mp3 to play music and .caf files to play sound effects without problems.


riq.


What file sound format, sound format and library do you use? - ozirus - Dec 26, 2008 12:24 PM

riruilo Wrote:By the way, what is "SoundEngine from Crashland"?

Thanks a lot for your help.

CrashLanding is one of the Sample Applications provided by Apple with the iPhone SDK. Is is a sample OpenGL ES game which uses AudioQueues and OpenAL for the sound engine.


What file sound format, sound format and library do you use? - jaguard - Dec 27, 2008 07:28 AM

riruilo Wrote:Do you really think it is not necessay fmod?

Unless you need something very cool, or MIDI/tracker formats, yes. I myself would prefer using .XM tracker format, but I'm not ready to spend $500 on this.

Quote:(I have no idea about how to play sounds on the iphone at the moment, so I don't know if it is easy or not, and I use fmod on pc and it is really easy).
Thanks a lot for your help.

It's about just as easy as fmod. SoundEngine itself is a great piece of some mysterious code, so it's actually one line of code to play a music or sound effect.


What file sound format, sound format and library do you use? - Frank C. - Dec 27, 2008 01:25 PM

jaguard Wrote:SoundEngine itself is a great piece of some mysterious code, so it's actually one line of code to play a music or sound effect.
That SoundEngine code actually has quite a few bugs and memory leaks, and AFAIK it's no longer available from Apple.


What file sound format, sound format and library do you use? - AnotherJake - Dec 27, 2008 01:32 PM

The memory leaks were from Audio Queues, not the class itself (assuming we're talking about the same leaks of course). Most of those leaks were fixed in 2.2. They're still working on (or maybe have an internal fix already) for the last tiny little buggers.

I think it's a useful class, but I found it a little convoluted myself. If it's not still available from Apple, you can probably find it in the oolong engine.