Skip to content

Commit

Permalink
Fixed Bug 20525
Browse files Browse the repository at this point in the history
  • Loading branch information
jussi-kalliokoski committed Dec 27, 2012
1 parent deaea09 commit 16d1d6d
Showing 1 changed file with 42 additions and 4 deletions.
46 changes: 42 additions & 4 deletions specification.html
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,30 @@ <h2 id="MIDIAccess"><a>MIDIAccess</a> Interface</h2>
class="idl">
<dt>sequence&lt;MIDIPort&gt; getInputs()</dt>
<dd>
Returns a list of the MIDI input ports available on the system. This list is not a live list (i.e., if a device is added or removed after calling getInputs(), the list is not changed.)
<p>
Returns a list of the MIDI input ports available on the system. This list is not a live list (i.e., if a device is added or removed after calling getInputs(), the list is not changed.)
</p>
<p>
If the method is called with on an object that is not a valid
<code><a>MIDIAccess</a></code> instance created by a <code><a
href="#widl-navigator-requestmidiaccess-void-successcallback-successcallback-errorcallback-errorcallback"
>requestMIDIAccess()</a></code> call, throw a
<code>NOT_SUPPORTED_ERROR</code>.
</p>
<!-- TODO: Specify the steps the UA is required to take. -->
</dd>
<dt>sequence&lt;MIDIPort&gt; getOutputs()</dt>
<dd>
Returns a list of the MIDI output ports available on the system. This list is not a live list (i.e., if a device is added or removed after calling getOutputs(), the list is not changed.)
<p>
Returns a list of the MIDI output ports available on the system. This list is not a live list (i.e., if a device is added or removed after calling getOutputs(), the list is not changed.)
</p>
<p>
If the method is called with on an object that is not a valid
<code><a>MIDIAccess</a></code> instance created by a <code><a
href="#widl-navigator-requestmidiaccess-void-successcallback-successcallback-errorcallback-errorcallback"
>requestMIDIAccess()</a></code> call, throw a
<code>NOT_SUPPORTED_ERROR</code>.
</p>
<!-- TODO: Specify the steps the UA is required to take. -->
</dd>
<dt><a>MIDIInput</a> getInput(MIDIPort or DOMString or short target)</dt>
Expand All @@ -346,6 +364,16 @@ <h2 id="MIDIAccess"><a>MIDIAccess</a> Interface</h2>
is invoked, the user agent MUST run the <dfn>algorithm to get an input port</dfn>: </p>

<ol>
<li>
<p>
If the method is called with on an object that is not a valid
<code><a>MIDIAccess</a></code> instance created by a <code><a
href="#widl-navigator-requestmidiaccess-void-successcallback-successcallback-errorcallback-errorcallback"
>requestMIDIAccess()</a></code> call, throw a
<code>NOT_SUPPORTED_ERROR</code>.
</p>
</li>

<li>
<p>Let <var>target</var> be the
<code><a>MIDIPort</a></code> argument.
Expand All @@ -358,7 +386,7 @@ <h2 id="MIDIAccess"><a>MIDIAccess</a> Interface</h2>
If the <var>target</var> parameter is a DOMString and there is no MIDIPort
that matches the id, or if the <var>target</var> parameter is a
short outside the bounds of available MIDI inputs, throw a
<code>NOT_FOUND_ERROR</code> exception.
<code>NOT_FOUND_ERROR</code> exception.</p>
</li>

<li>
Expand Down Expand Up @@ -408,6 +436,16 @@ <h2 id="MIDIAccess"><a>MIDIAccess</a> Interface</h2>
is invoked, the user agent MUST run the <dfn>algorithm to get an output port</dfn>: </p>

<ol>
<li>
<p>
If the method is called with on an object that is not a valid
<code><a>MIDIAccess</a></code> instance created by a <code><a
href="#widl-navigator-requestmidiaccess-void-successcallback-successcallback-errorcallback-errorcallback"
>requestMIDIAccess()</a></code> call, throw a
<code>NOT_SUPPORTED_ERROR</code>.
</p>
</li>

<li>
<p>Let <var>target</var> be the
<code><a>MIDIPort</a></code> argument.
Expand All @@ -420,7 +458,7 @@ <h2 id="MIDIAccess"><a>MIDIAccess</a> Interface</h2>
If the <var>target</var> parameter is a DOMString and there is no MIDIPort
that matches the id, or if the <var>target</var> parameter is a
short outside the bounds of available MIDI inputs, throw a
<code>NOT_FOUND_ERROR</code> exception.
<code>NOT_FOUND_ERROR</code> exception.</p>
</li>

<li>
Expand Down

0 comments on commit 16d1d6d

Please sign in to comment.