Skip to content

Commit

Permalink
Bug 20412 - short => octet
Browse files Browse the repository at this point in the history
  • Loading branch information
cwilso committed Dec 26, 2012
1 parent 23d1a3f commit 827afb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specification.html
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ <h3 id="MIDIOutput"><a>MIDIOutput</a> Interface</h3>

<dl title="interface MIDIOutput : MIDIPort"
class="idl">
<dt>void send( sequence data, optional double timestamp )</dt>
<dt>void send( sequence&lt;octet&gt; data, optional double timestamp )</dt>
<dd>
<p>
Enqueues the message to be sent to the corresponding MIDI port. The underlying implementation will (if necessary) coerce each member of the sequence to an unsigned 8-bit integer. The use of sequence rather than a UInt8Array enables developers to use the convenience of <code>output.send( [ 0x90, 0x45, 0x7f ] );</code> rather than having to create a UInt8Array, e.g. <code>output.send( new UInt8Array( [ 0x90, 0x45, 0x7f ] ) );</code> - while still enabling use of UInt8Arrays for efficiency in large MIDI data scenarios (e.g. reading Standard MIDI Files and sending sysex messages).
Expand All @@ -594,7 +594,7 @@ <h3 id="MIDIOutput"><a>MIDIOutput</a> Interface</h3>
or if <code>timestamp</code> is passed but is not a valid DOMHighResTimeStamp, throw a <code>TYPE_ERROR</code> exception.
</p>
<dl class='parameters'>
<dt>sequence&lt;short&gt; data</dt>
<dt>sequence&lt;octet&gt; data</dt>
<dd>
The data to be enqueued, with each sequence entry representing a single byte of data.
</dd>
Expand Down

0 comments on commit 827afb6

Please sign in to comment.