Accessors
Static musicMuted
- get musicMuted(): boolean
- set musicMuted(value: boolean): void
Returns boolean
Parameters
Returns void
Static musicVolume
- get musicVolume(): number
- set musicVolume(value: number): void
Returns number
Parameters
Returns void
Static muted
- get muted(): boolean
- set muted(value: boolean): void
Returns boolean
Parameters
Returns void
Static soundMuted
- get soundMuted(): boolean
- set soundMuted(value: boolean): void
Returns boolean
Parameters
Returns void
Static soundVolume
- get soundVolume(): number
- set soundVolume(value: number): void
Returns number
Parameters
Returns void
Methods
Static playMusic
- playMusic(url: string, volume?: number): void
Parameters
url: string
volume: number = 1
Returns void
Static playSound
- playSound(url: string, volume?: number): void
Parameters
url: string
volume: number = 1
Returns void
Static resumeMusic
Returns void
Static stopAll
Returns void
Static stopAllSound
Returns void
Static stopMusic
Returns void
Static stopSound
- stopSound(url: string): void
Parameters
Returns void
声音管理类