Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SoundInterface

Hierarchy

Index

Constructors

constructor

  • new SoundInterface(app: any, soundClass: any, musicClass: any): SoundInterface
  • Parameters

    • app: any
    • soundClass: any
    • musicClass: any

    Returns SoundInterface

Methods

deinitialize

  • deinitialize(): Promise<any[]>
  • Deinits the sound

    Returns Promise<any[]>

getMusicMuted

  • getMusicMuted(): any
  • Returns if the music is muted

    Returns any

getSoundsMuted

  • getSoundsMuted(): any
  • Returns if sounds are muted

    Returns any

initialize

  • initialize(): Promise<void>
  • Initializes the sound

    Returns Promise<void>

loadSound

  • loadSound(key: any): any
  • Pre-Loads the given sounds

    Parameters

    • key: any

    Returns any

onPageRenderableStateChanged

  • onPageRenderableStateChanged(pageIsVisible: any): void
  • Focus change handler, called by the pap

    Parameters

    • pageIsVisible: any

    Returns void

play3DSound

  • play3DSound(key: any, worldPosition: any, root: any): void
  • Parameters

    • key: any
    • worldPosition: any
    • root: any

    Returns void

playThemeMusic

  • playThemeMusic(key: any): void
  • Parameters

    • key: any

    Returns void

playUiSound

  • playUiSound(key: any): void
  • Parameters

    • key: any

    Returns void

setMusicMuted

  • setMusicMuted(muted: any): void
  • Sets if the music is muted

    Parameters

    • muted: any

    Returns void

setSoundsMuted

  • setSoundsMuted(muted: any): void
  • Sets if the sounds are muted

    Parameters

    • muted: any

    Returns void