Skip to content

AudioClip

extends AssetObject

The AudioClip class is used to store audio data. It contains all the information about an audio file, including the audio data, length, frequency, format, and more.

Instance Properties

AudioClip.channels : number
(Read Only) The number of channels in the audio clip.
AudioClip.frequency : number
(Read Only) The sample rate of the audio clip.
AudioClip.length : number
The length of the audio clip in seconds.
AudioClip.loadType : AudioClipLoadType
The loading status of an audio clip.
AudioClip.samples : number
(Read Only) The number of samples in the audio clip.