AudioClip.frequency

var frequency : int

Description

Sample frequency (Read Only)

JavaScript
// 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)