SoundInterface
Direct Subclass:
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
musicClass: * |
|
| public |
|
|
| public |
|
|
| public |
soundClass: * |
|
| public |
|
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
deinitialize(): Promise<void> Deinits the sound |
|
| public |
Returns the music volume |
|
| public |
Returns the sound volume |
|
| public |
initialize(): Promise<any> Initializes the sound |
|
| public |
Pre-Loads the given sounds |
|
| public |
onPageRenderableStateChanged(pageIsVisible: boolean) Focus change handler, called by the pap |
|
| public |
play3DSound(key: string, worldPosition: Vector, root: GameRoot) |
|
| public |
playThemeMusic(key: string) |
|
| public |
playUiSound(key: string) |
|
| public |
setMusicVolume(volume: number) Sets the music volume |
|
| public |
setSoundVolume(volume: number) Sets the sound volume |
|
Public Constructors
public constructor() source
Public Members
public app: Application source
public currentMusic: MusicInstanceInterface source
public music: Object<string, MusicInstanceInterface> source
public musicClass: * source
public soundClass: * source
public sounds: Object<string, SoundInstanceInterface> source
Public Methods
public loadSound(key: string): Promise<void> source
Pre-Loads the given sounds
Params:
| Name | Type | Attribute | Description |
| key | string |
public onPageRenderableStateChanged(pageIsVisible: boolean) source
Focus change handler, called by the pap
Params:
| Name | Type | Attribute | Description |
| pageIsVisible | boolean |
