GetSoundSize() private méthode

private GetSoundSize ( AudioClip clip ) : int
clip UnityEngine.AudioClip
Résultat int
        public override string GetInfoString()
        {
            AudioClip clip         = this.target as AudioClip;
            int       channelCount = AudioUtil.GetChannelCount(clip);
            string    text         = (channelCount != 1) ? ((channelCount != 2) ? ((channelCount - 1).ToString() + ".1") : "Stereo") : "Mono";
            string    str          = string.Concat(new object[]
            {
                AudioUtil.GetSoundCompressionFormat(clip).ToString(),
                ", ",
                AudioUtil.GetFrequency(clip),
                " Hz, ",
                text,
                ", "
            });
            TimeSpan timeSpan = new TimeSpan(0, 0, 0, 0, (int)AudioUtil.GetDuration(clip));

            if ((uint)AudioUtil.GetDuration(clip) == 4294967295u)
            {
                str += "Unlimited";
            }
            else
            {
                str += string.Format("{0:00}:{1:00}.{2:000}", timeSpan.Minutes, timeSpan.Seconds, timeSpan.Milliseconds);
            }
            str += ", ";
            return(str + EditorUtility.FormatBytes(AudioUtil.GetSoundSize(clip)));
        }