Take a look at this diff: https://github.com/spanishdict/wavesurfer.js/commit/ac0e6b5cec8f5e20f3ebc61b9270a7ac1e50c09d

That exposes the audio context reference on WebAudio as a getter function, rather than creating a new global variable to hold it. Wherever you use WebAudio, you can do `webAudioObject.getAudioContext()` to get the context. Does that work for you?