这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit 0de9357

Browse files
committed
Fix up double->DOMHighResTimeStamp references.
Fixes #143.
1 parent 807867c commit 0de9357

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ <h2 id="MIDIPort"><a>MIDIPort</a> Interface</h2>
402402
</dd>
403403
<dt>closed</dt>
404404
<dd>
405-
The device that MIDIPort represents has not been opened, or has been explicitly closed. Until a MIDIPort has been opened either explicitly (through <code><a href="#widl-MIDIPort-open-Promise-MIDIPort">open()</a></code>) or implicitly (by adding a <a href="#widl-MIDIInput-onmidimessage">midimessage</a> event handler on an input port, or calling <a href="#widl-MIDIOutput-send-void-sequence-octet--data-double-timestamp">send()</a> on an output port, this should be the default state of the device.
405+
The device that MIDIPort represents has not been opened, or has been explicitly closed. Until a MIDIPort has been opened either explicitly (through <code><a href="#widl-MIDIPort-open-Promise-MIDIPort">open()</a></code>) or implicitly (by adding a <a href="#widl-MIDIInput-onmidimessage">midimessage</a> event handler on an input port, or calling <a href="#widl-MIDIOutput-send-void-sequence-octet--data-DOMHighResTimeStamp-timestamp">send()</a> on an output port, this should be the default state of the device.
406406
</dd>
407407
<dt>pending</dt>
408408
<dd>
@@ -742,7 +742,7 @@ <h3 id="MIDIOutput"><a>MIDIOutput</a> Interface</h3>
742742

743743
<dl title="interface MIDIOutput : MIDIPort"
744744
class="idl">
745-
<dt>void send( sequence&lt;octet&gt; data, optional double timestamp = 0 )</dt>
745+
<dt>void send( sequence&lt;octet&gt; data, optional DOMHighResTimeStamp timestamp = 0 )</dt>
746746
<dd>
747747
<p>
748748
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).
@@ -773,7 +773,7 @@ <h3 id="MIDIOutput"><a>MIDIOutput</a> Interface</h3>
773773
<dd>
774774
The data to be enqueued, with each sequence entry representing a single byte of data.
775775
</dd>
776-
<dt>optional double timestamp</dt>
776+
<dt>optional DOMHighResTimeStamp timestamp</dt>
777777
<dd>
778778
The time at which to begin sending the data to the port (as a <a href="#DomHighResTimeStampDfn">DOMHighResTimeStamp</a> - a number of milliseconds measured relative to the navigation start of the document). If <code>timestamp</code> is set to zero (or another time in the past), the data is to be sent as soon as possible.
779779
</dd>
@@ -792,7 +792,7 @@ <h2 id="MIDIMessageEvent"><a>MIDIMessageEvent</a> Interface</h2>
792792
<p>An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received.</p>
793793
<dl title="[Constructor(DOMString type, optional MIDIMessageEventInit eventInitDict)] interface MIDIMessageEvent : Event"
794794
class="idl">
795-
<dt>readonly attribute double receivedTime</dt>
795+
<dt>readonly attribute DOMHighResTimeStamp receivedTime</dt>
796796
<dd>
797797
<p>A <code>DOMHighResTimeStamp</code> specifying when the event occurred.</p>
798798
<p class="note">The DOM4 <a class="externalDFN">Event</a> object has a timeStamp member in the event object that will be filled out with the current time, but that it is lower precision (DOMTimeStamp is defined as an integer number of milliseconds), has a different zero reference (DOMTimeSTamp is the number of milliseconds that has passed since 00:00:00 UTC on 1 January 1970), and therefore is less suitable for MIDI applications.</p>
@@ -806,7 +806,7 @@ <h2 id="MIDIMessageEvent"><a>MIDIMessageEvent</a> Interface</h2>
806806
<h2 id="MIDIMessageEventInit"><a>MIDIMessageEventInit</a> Interface</h2>
807807
<dl title="dictionary MIDIMessageEventInit : EventInit"
808808
class="idl">
809-
<dt>double receivedTime</dt>
809+
<dt>DOMHighResTimeStamp receivedTime</dt>
810810
<dd>
811811
<p>A <code>DOMHighResTimeStamp</code> specifying when the event occurred.</p>
812812
</dd>

0 commit comments

Comments
 (0)