AudioAsset
The interface extends AssetMapData for compatibility
Extends
Implements
Constructors
new AudioAsset()
new AudioAsset(
assetName
,category
):AudioAsset
Parameters
• assetName: string
• category: string
Returns
Overrides
Source
src/load/assets/AudioAsset.ts:8
Properties
assetName
assetName:
string
The name of the asset file.
Implementation of
Inherited from
Source
assetPath
assetPath:
string
=''
Path to the asset
Implementation of
Inherited from
Source
assetType
assetType:
AssetType
The type of the asset file.
Implementation of
Inherited from
Source
category
category:
string
The category to add this audio asset to.
Inherited from
Source
src/load/AssetMapAudioData.ts:13
data
data:
any
Implementation of
Inherited from
Source
resolutionSuffix
resolutionSuffix:
string
=''
If resolution suffix is set the asset is loaded only on devices with the matched asset resolution
Implementation of
Inherited from
AssetMapAudioData
.resolutionSuffix
Source
Methods
destroy()
destroy():
void
Returns
void
Implementation of
Inherited from
Source
getAsset()
getAsset():
IAudioTrack
Returns
Implementation of
Source
src/load/assets/AudioAsset.ts:12
getLoaderOptions()
getLoaderOptions():
undefined
|Partial
<any
>
Returns
undefined
| Partial
<any
>
Implementation of
Inherited from
AssetMapAudioData
.getLoaderOptions
Source
getResource()
getResource():
any
Returns
any
Implementation of
Inherited from
Source
isLoaded()
isLoaded():
boolean
Returns
boolean