Format
typescript
AudioClip.frequencyclass: AudioClip
Description
(Read Only) The sample rate of the audio clip.
The sample rate represents the number of times the audio signal is sampled per second, usually measured in Hertz (Hz).
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The sample rate of the audio clip. |
Code Example
typescript
let audio = Resources.Load<AudioClip>(AudioClip, "audioClipId");
audio.frequency;