- Home /
Audio clip length not equal than wav length
Hello I used Debug.Log("Clip Length : "+sourceNarration.audio.clip.length);
it returns 124.473 = 2.074s
The problem is that my real wav lenght is 2.04s
This cause problem swapping an audio to another. I use unity 3.5.2f2
Is the clip actually a .wav , or a .mp3? I know that the embedded info of a .mp3 can increase the length, and this 'gap' is obvious when looping.
Also consider : http://forum.unity3d.com/threads/34009-Audio-Click
it's a .wav, with "compressed (mpeg)" option checked in Unity Editor.
Should I use .mp3 ins$$anonymous$$d?
No, definitely don't convert it. And also leave the inspector as Native(WAV), leave it uncompressed. Unity will compress it by itself when you build (to OGG or $$anonymous$$P3 for iOS).
I don't understand, why the quality compression is made for, then in the Unity Editor? The waves are too long to be left without any compression
By the way it would have been nice to use a compression per platform, like for texture assets.
Your answer
Follow this Question
Related Questions
Set audio clip to 3D in script 1 Answer
Help with sound clips [C#] 0 Answers
Get audio from device... -1 Answers
Random, 3d sound. 1 Answer
AudioClip array not working 1 Answer