Skip to content

AudioCollection

Class for managing a collection of audio tracks.

Constructors

new AudioCollection()

new AudioCollection(): AudioCollection

Constructor for AudioCollection.

Returns

AudioCollection

Source

src/audio/AudioCollection.ts:22

Accessors

tracks

get tracks(): default<string, IAudioTrack>

Getter for tracks.

Returns

default<string, IAudioTrack>

  • The tracks in the audio collection.

Source

src/audio/AudioCollection.ts:47


volume

get volume(): number

Getter for volume.

set volume(pValue): void

Setter for volume.

Parameters

pValue: number

The new volume for the audio collection.

Returns

number

  • The volume of the audio collection.

Source

src/audio/AudioCollection.ts:31