AudioToken
Class representing an audio token.
Constructors
new AudioToken()
new AudioToken(
pId
,pVolume
,pLoop
,pCategory
):AudioToken
Create a new audio token.
Parameters
• pId: string
The ID of the audio token.
• pVolume: number
= 1
The volume of the audio token.
• pLoop: boolean
= false
Whether the audio token should loop.
• pCategory: string
= AudioCategory.DEFAULT
The category of the audio token.
Returns
Source
Properties
category
category:
string
The category of the audio token.
Source
id
id:
string
The ID of the audio token.
Source
loop
loop:
boolean
Whether the audio token should loop.
Source
volume
volume:
number
The volume of the audio token.