AudioClip.frequency Manual     Reference     Scripting  
Scripting > Runtime Classes > AudioClip
AudioClip.frequency

var frequency : int

Description

Sample frequency (Read Only)

JavaScripts
// Prints the frequency of the attached audio in Hz
Debug.Log(audio.clip.frequency);

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
Debug.Log(audio.clip.frequency);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
Debug.Log(audio.clip.frequency)