g200kg / webaudio-tinysynth

Light-weight GM mapped WebAudio-JavaScript Synthesizer Engine / MIDI Player
Apache License 2.0
229 stars 22 forks source link

Failed to execute 'disconnect' on 'AudioNode' #20

Closed alexkowel closed 3 years ago

alexkowel commented 3 years ago

Hi, After 1-2 minutes from starting midi file playback, tinysynth outputs the following message to the browser console:

Uncaught DOMException: Failed to execute 'disconnect' on 'AudioNode': the given AudioParam is not connected.
    at AudioBufferSourceNode.o.<computed>.onended (https://g200kg.github.io/webaudio-tinysynth/webaudio-tinysynth.js:1072:47)

The time it happens varies considerably even when playing the same midi file. Also, it looks like the issue is purely cosmetic, since I can't hear any issues with the playback itself.

g200kg commented 3 years ago

Thank you for the report. In chrome, an error occurs due to a subtle timing problem, so I tried not to throw it.