Skip to content

Class: AudioClip ​

Typed wrapper for a loaded audio asset. Pixi backend exposes an HTMLAudioElement prototype here; PixiAudio clones it per Play so overlapping playback works.

Extends ​

Constructors ​

Constructor ​

ts
new AudioClip(assetId, loader?): AudioClip;

Parameters ​

ParameterType
assetIdstring
loader?IAssetLoader

Returns ​

AudioClip

Inherited from ​

AssetHandle.constructor

Properties ​

PropertyModifierTypeInherited from
assetIdreadonlystringAssetHandle.assetId

Accessors ​

element ​

Get Signature ​

ts
get element(): unknown;
Returns ​

unknown

Methods ​

GetDefaultAssetLoader() ​

ts
static GetDefaultAssetLoader(): IAssetLoader | null;

Returns ​

IAssetLoader | null

Inherited from ​

AssetHandle.GetDefaultAssetLoader


getDuration() ​

ts
getDuration(): number | null;

Returns ​

number | null


isLoaded() ​

ts
isLoaded(): boolean;

Returns ​

boolean

Inherited from ​

AssetHandle.isLoaded


SetDefaultAssetLoader() ​

ts
static SetDefaultAssetLoader(loader): void;

Parameters ​

ParameterType
loaderIAssetLoader | null

Returns ​

void

Inherited from ​

AssetHandle.SetDefaultAssetLoader

© 2026 PlayAdGentic