★ TouchArcade needs your help. Click here to support us on Patreon.

Question on Sound Files

05-09-2009, 04:01 PM
#1
Joined: Mar 2009
Posts: 77
Send a message via AIM to TechPadProductions Send a message via Skype™ to TechPadProductions
Question on Sound Files

We are creating a simple sound board, but using a professional sound company.

Anyone have some feedback as to what format we can use in an app to playback a sound.

.wav, .mp3, .mp4? Also what is the best sampling rate you have used?
05-09-2009, 04:24 PM
#2
Joined: Dec 2008
Location: Around
Posts: 349
Send a message via AIM to Sparks
I think wav and mp3

Check out my newest game 'Tiled': 'Tiled' (iTunes)
05-09-2009, 04:41 PM
#3
Joined: Jan 2009
Location: App Tech Studios, USA
Posts: 1,363
wav is the best in my opinion. It lets you play mutliple sounds at once.
05-09-2009, 04:49 PM
#4
Joined: Sep 2008
Location: Los Angeles, USA
Posts: 722
You can play 1 mp3 at any time, and on top of that as many wav's as the app can handle at once. We use 48k mp3's for our games' music, btw. Any sample rate will work, but it will use more resources as the bitrate increases. Same with wavs, larger filesizes will use more resources and potentially cause lag. You might want to experiment with using mono wavs instead of stereo if possible, as this will cut the filesize in half.
05-09-2009, 06:29 PM
#5
Joined: Nov 2008
Location: Baltimore
Posts: 205
OpenAL can play back many Wav files at a time.

We are using 22khz mono files.

AudioQueue can stream 1 music file at a time. MP3 etc

You can pre load or stream it in.

Streaming gave me a a FPS hit.

But it saves ram so a lot of people are doing it.

AudioQueue will use the ipods sound CPU to play back the music
CPU hits from that should be minimal.

Im playing MP3, VBR encoded 126(?) or so bit rate.
At least with my music going low had a horrible effect on the dynamic range
so you need to play with that.
05-09-2009, 08:18 PM
#6
Joined: Mar 2009
Location: Moldova
Posts: 435
Send a message via ICQ to conrem Send a message via MSN to conrem Send a message via Yahoo to conrem Send a message via Skype™ to conrem