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: Mon, 09 Sep 2013 10:22:07 -0700
To: WebAudio/web-midi-api <web-midi-api@noreply.github.com>
Message-ID: <WebAudio/web-midi-api/issues/79/24097047@github.com>
"gets port 0" means "is at index 0 in the live input() list". What happens in the live input list if I disconnect a device and attach another device?

Suppose that:
var inputs = midiAccess.inputs();

Results in:
inputs ===  [InputPort_forDevice1, InputPort_forDevice2]

What will the same operation result if I disconnect Device1 and connect Device3?

Reply to this email directly or view it on GitHub:
Received on Monday, 9 September 2013 17:22:36 UTC

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