tambien/StartAudioContext

Failed to execute 'connect' on 'AudioNode': No function was found that matched the signature provided.

Andy671 opened this issue · 0 comments

Hey, I'm using the
"tone": "^13.8.25"
"startaudiocontext": "^1.2.1"

Here is the simplified snippet from my code, where interactionHappened is triggered after any UI interaction.

interactionHappened() {
    if (!isAudioContextStarted && isToneSupported) {
      StartAudioContext(Tone.context)
      isAudioContextStarted = true
    } 
}

I am using Sentry and it shows that this frequent error appears on different devices & browsers:

TypeError: Failed to execute 'connect' on 'AudioNode': No function was found that matched the signature provided.
  at startContext(./node_modules/startaudiocontext/StartAudioContext.js:81:1)
  at apply(./node_modules/startaudiocontext/StartAudioContext.js:51:1)