Skip to content

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

AudioToken

Source

src/audio/AudioToken.ts:34

Properties

category

category: string

The category of the audio token.

Source

src/audio/AudioToken.ts:25


id

id: string

The ID of the audio token.

Source

src/audio/AudioToken.ts:10


loop

loop: boolean

Whether the audio token should loop.

Source

src/audio/AudioToken.ts:20


volume

volume: number

The volume of the audio token.

Source

src/audio/AudioToken.ts:15