Function setContext

  • Set the default audio context

    Parameters

    • context: BaseContext | AnyAudioContext
    • disposeOld: boolean = false

      Pass true if you don't need the old context to dispose it.

    Returns void