Sample frequency (Read Only)
// Prints the frequency of the attached audio in Hz
Debug.Log(audio.clip.frequency);
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Example() {
Debug.Log(audio.clip.frequency);
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
Debug.Log(audio.clip.frequency)