Skip to main content Audio
Class AudioPlayer
constructor (src: string, defaultVolume: number, preload: boolean): AudioPlayer
Name | Type | Default | Description |
src | string | | |
defaultVolume | number | 1 | |
preload | boolean | true | |
Property .defaultVolume : number
Default value: 1
Property .player : HTMLAudioElement
Default value: ...
Method .play (volume: number): void
Name | Type | Default | Description |
volume | number | | |