Function getAudioBalanceControl

  • Parameters

    • audioElement: HTMLAudioElement

      The element to control.

    Returns ((balance: number) => void)

    A function which will control the balance for the given element.

    • An input of -1 means all left.
    • 0 means center / both.
    • 1 means all right.
    • Values between -1 and 1 are continuously interpolated.
      • (balance): void
      • Parameters

        • balance: number

        Returns void