Skip to content

Format

typescript
AudioClip.frequency

class: 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_nametypedescription

Return

typedescription
numberThe sample rate of the audio clip.

Code Example

typescript
let audio = Resources.Load<AudioClip>(AudioClip, "audioClipId");
audio.frequency;