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:
```javascript
var inputs = midiAccess.inputs();
```

Results in:
```javascript
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:
https://github.com/WebAudio/web-midi-api/issues/79#issuecomment-24097047
Received on Monday, 9 September 2013 17:22:36 UTC

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