x


Audio.Pitch not smaller than 0.1f on the iPhone?

Hi, i need to set a small audio.pitch value like 0.0001f which works on the PC version.

But on the iPhone it seems like the min. value is 0.1f.

Is there a limitation?

more ▼

asked Nov 23 '09 at 04:54 AM

Kiyaku gravatar image

Kiyaku
261 2 2 9

What do you need a pitch of 0.0001f for? I'd guess that in most cases that would be below audible frequencies ;-)

Nov 23 '09 at 12:08 PM jashan

In all cases. :-P

Even if you used a sample rate of 192 kHz (and I don't even know if Unity supports that), the highest frequency available (96 kHz) times .0001 is 9.6 Hz - over an octave below the limit of what humans perceive as sound.

Nobody's speakers put out that low of frequencies. Still, I could see a value between .001 - .01 being useful.

Dec 21 '09 at 01:55 PM Jessy
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

One possible solution to get below that limitation would be creating the sound in different "pitches" and then deciding which sound to play if it goes below any given limitation (I know that there were some limitations on frequency due to very nasty crash bugs in Unity - seems quite plausible that they have similar limitations on the iPhone). You might even get better audio-quality if you optimize the sounds for different pitches (but transitions might be a little more tricky to implement).

more ▼

answered Nov 23 '09 at 12:08 PM

jashan gravatar image

jashan
10.3k 25 43 117

(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:

x2013
x1060

asked: Nov 23 '09 at 04:54 AM

Seen: 1677 times

Last Updated: Nov 23 '09 at 04:54 AM