Options
All
  • Public
  • Public/Protected
  • All
Menu

Module background/methods/sound

Index

Functions

  • audioOnOff(audioID: string): void
  • pauseAudioByID(audioID: string): void
  • Pauses audio of given HTML audio element

    example
    pauseAudioByID("dune_OST_player");
    

    Parameters

    • audioID: string

      ID of the HTML audio player element

    Returns void

  • playAudioByID(audioID: string): void
  • setAudioVolumeByID(audioID: string, volume: any): void
  • Sets audio volume of given HTML audio element

    Parameters

    • audioID: string

      ID of the HTML audio player element

    • volume: any

      The volume to set the audio to.

    Returns void

Generated using TypeDoc version 0.22.15, the 4/20/2022