vmsg icon indicating copy to clipboard operation
vmsg copied to clipboard

Failed to execute close on AudioContext

Open binlux opened this issue 3 years ago • 2 comments

after updating google chrome to v90

Capture

binlux avatar Apr 14 '21 23:04 binlux

I also suffer the same issue. However, using vmsg v0.3.6 instead of v0.4.0, solves the issue.

CHANist avatar Apr 23 '21 03:04 CHANist

I have related issue "Uncaught (in promise) DOMException: Can't close an AudioContext twice" for V0.4.0 This is the line: https://github.com/Kagami/vmsg/blob/623b2940a37f5a309cd4d13411a0894664131079/vmsg.js#L172

NOTE: locally this was fixed by this:

- if (this.audioCtx) this.audioCtx.close();
+ if (this.audioCtx && this.audioCtx.state != 'closed') this.audioCtx.close();

What do you think?

vacho avatar Oct 12 '22 12:10 vacho