AudioClip.frequency 频率

var frequency : int

Description描述

Sample frequency (Read Only)

返回音频剪辑的采样频率。(只读)

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public void Awake() {

		Debug.Log(audio.clip.frequency);

	}

}
// Prints the frequency of the attached audio in Hz

//打印附加的音频的频率,以Hz为单位



Debug.Log(audio.clip.frequency); 
Page last updated: 2011-1-13