W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

Re: [web-midi-api] MIDI input/output disconnection - is it permanent? (#79)

From: Jussi Kalliokoski <notifications@github.com>
Date: Thu, 05 Sep 2013 23:19:01 -0700
To: WebAudio/web-midi-api <web-midi-api@noreply.github.com>
Message-ID: <WebAudio/web-midi-api/issues/79/23921023@github.com>
My idea has been that the instance would work like nothing happened (unless you choose to discard the whole thing) on disconnect -> reconnect. To me it seems that if two ports' that are of the same type and share the ID, they should behave exactly the same. I can't see that if they're from the same MIDIAccess they would even be a different instance. However, for isolation, it's probably better that different MIDIAccess instances don't share the same port instances, so that you can safely assume that if you get a port from a fresh MIDIAccess, no one has set any `on<eventname>` handlers on it.

Reply to this email directly or view it on GitHub:
Received on Friday, 6 September 2013 06:19:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:23 UTC