x


iPhone best Audio Compression for in Game Sounds like Shoot or Hit

Hello, well i'm looking for the best compression for playback Shoot & Hit Sounds on iPhone... Is 16 bit 44100 Hz Mono better in performance than 16 bit 22500 Hz Mono ? or is 8 bit 22500 Hz better performance wise ???

and what is if i want to alter the Pitch & Volume of the Sound ??? So if i change the Pitch & Volume @ moment i get some framerate drops... here is how i change the Sound:

function ShipSpeed (Speed : float) {
		Ship.ShipSpeed = Speed;
		Ship.audio.pitch = Speed;
		Ship.audio.volume = Speed;

}

many thanxx for your help

more ▼

asked Dec 22 '09 at 07:53 PM

muckel gravatar image

muckel
21 2 2 7

I don't have the answers to your questions. However, this is not a question about compression. This is a question about uncompressed formats.

Dec 22 '09 at 11:16 PM Jessy
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

8 bit at 22500 HZ will kill sound quality in any circumstance. I would do 8 bit at 44100 if the audio file is pretty loud and noisy thing. if it's a quieter type song I would do 16 bit at 44100 HZ. 22500 HZ just sounds really bad unless you are recording an orchestra if I remember right.

more ▼

answered Dec 24 '10 at 06:29 PM

Diet Chugg gravatar image

Diet Chugg
229 23 28 36

(comments are locked)
10|3000 characters needed characters left

Neither do I have an answer. Just launch the Activity Monitor from XCode (Run->Start with Performance Tool->Activity Monitor) and try out sounds with different formats. Observe how much CPU your application is consuming.

Profiling your application is always the best way to figure it out.

more ▼

answered Jan 21 '10 at 08:25 AM

ReJ gravatar image

ReJ
346 2 6

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1999
x1026
x662

asked: Dec 22 '09 at 07:53 PM

Seen: 3696 times

Last Updated: Dec 22 '09 at 07:53 PM