Function createAudioContext

  • Creates a new audio context and resumes it once the user interacts with the window (via click or keypress).

    Parameters

    • Optional options: AudioContextOptions

      The options passed to the audio context.

    Returns AudioContext

    A new AudioContext instance.