Skip to content

AudioAsset

The interface extends AssetMapData for compatibility

Extends

Implements

Constructors

new AudioAsset()

new AudioAsset(assetName, category): AudioAsset

Parameters

assetName: string

category: string

Returns

AudioAsset

Overrides

AssetMapAudioData.constructor

Source

src/load/assets/AudioAsset.ts:8

Properties

assetName

assetName: string

The name of the asset file.

Implementation of

IAsset.assetName

Inherited from

AssetMapAudioData.assetName

Source

src/load/AssetMapData.ts:12


assetPath

assetPath: string = ''

Path to the asset

Implementation of

IAsset.assetPath

Inherited from

AssetMapAudioData.assetPath

Source

src/load/AssetMapData.ts:20


assetType

assetType: AssetType

The type of the asset file.

Implementation of

IAsset.assetType

Inherited from

AssetMapAudioData.assetType

Source

src/load/AssetMapData.ts:16


category

category: string

The category to add this audio asset to.

Inherited from

AssetMapAudioData.category

Source

src/load/AssetMapAudioData.ts:13


data

data: any

Implementation of

IAsset.data

Inherited from

AssetMapAudioData.data

Source

src/load/AssetMapData.ts:26


resolutionSuffix

resolutionSuffix: string = ''

If resolution suffix is set the asset is loaded only on devices with the matched asset resolution

Implementation of

IAsset.resolutionSuffix

Inherited from

AssetMapAudioData.resolutionSuffix

Source

src/load/AssetMapData.ts:24

Methods

destroy()

destroy(): void

Returns

void

Implementation of

IAsset.destroy

Inherited from

AssetMapAudioData.destroy

Source

src/load/AssetMapData.ts:57


getAsset()

getAsset(): IAudioTrack

Returns

IAudioTrack

Implementation of

IAsset.getAsset

Source

src/load/assets/AudioAsset.ts:12


getLoaderOptions()

getLoaderOptions(): undefined | Partial<any>

Returns

undefined | Partial<any>

Implementation of

IAsset.getLoaderOptions

Inherited from

AssetMapAudioData.getLoaderOptions

Source

src/load/AssetMapData.ts:46


getResource()

getResource(): any

Returns

any

Implementation of

IAsset.getResource

Inherited from

AssetMapAudioData.getResource

Source

src/load/AssetMapData.ts:38


isLoaded()

isLoaded(): boolean

Returns

boolean

Implementation of

IAsset.isLoaded

Inherited from

AssetMapAudioData.isLoaded

Source

src/load/AssetMapAudioData.ts:26