Methods
Static clampRate
- clampRate(rate: number): number
createHowlerSound
- createHowlerSound(soundName: string, isMusic: boolean, volume: number, loop: boolean, rate: number): HowlerSound
Parameters
soundName: string
isMusic: boolean
volume: number
loop: boolean
rate: number
getGlobalVolume
- getGlobalVolume(): number
getResourceKinds
- getResourceKinds(): ResourceKind[]
loadAudio
- loadAudio(soundName: string, isMusic: boolean): void
Parameters
soundName: string
isMusic: boolean
Returns void
loadResource
- loadResource(resourceName: string): Promise<void>
Parameters
Returns Promise<void>
playMusic
- playMusic(soundName: string, loop: boolean, volume: number, pitch: number): void
Parameters
soundName: string
loop: boolean
volume: number
pitch: number
Returns void
playMusicOnChannel
- playMusicOnChannel(soundName: string, channel: number, loop: boolean, volume: number, pitch: number): void
Parameters
soundName: string
channel: number
loop: boolean
volume: number
pitch: number
Returns void
playSound
- playSound(soundName: string, loop: boolean, volume: number, pitch: number): void
Parameters
soundName: string
loop: boolean
volume: number
pitch: number
Returns void
playSoundOnChannel
- playSoundOnChannel(soundName: string, channel: number, loop: boolean, volume: number, pitch: number): void
Parameters
soundName: string
channel: number
loop: boolean
volume: number
pitch: number
Returns void
processResource
- processResource(resourceName: string): Promise<void>
Parameters
Returns Promise<void>
setGlobalVolume
- setGlobalVolume(volume: number): void
unloadAudio
- unloadAudio(soundName: string, isMusic: boolean): void
Parameters
soundName: string
isMusic: boolean
Returns void
HowlerSoundManager is used to manage the sounds and musics of a RuntimeScene.
It is basically a container to associate channels to sounds and keep a list of all sounds being played.