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: Cristiano Belloni <notifications@github.com>
Date: Thu, 05 Sep 2013 08:50:20 -0700
To: WebAudio/web-midi-api <web-midi-api@noreply.github.com>
Message-ID: <WebAudio/web-midi-api/issues/79/23878038@github.com>
Thanks for posting, Chris!

>I think that when a port disconnects, it should release the event handler and the object, and they should not become live again, even when reconnected.

Why? Wouldn't it be more convenient to mantain the event handler? The worst it can happen, when an interface disconnects, is not getting MIDI events anymore. A web application could, for example, listen for midi message on every input and be oblivious that some of them are actually disconnected or reconnected (obviously, if it wants to know, it could still listen the disconnect / connect events).

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-midi-api/issues/79#issuecomment-23878038
Received on Thursday, 5 September 2013 15:56:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:10 UTC