AudioClip.frequency 频率


var frequency : int

Description描述

Sample frequency (Read Only)

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

  • C#

  • JavaScript

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); 


,