Fixed timestamps in MIDI API
authorJussi Kalliokoski <jussi.kalliokoski@gmail.com>
Fri, 01 Jun 2012 18:40:20 +0300
changeset 65 b78b7c5e906e
parent 64 5210c5dd80e8
child 66 24fb43122c54
Fixed timestamps in MIDI API

Use DOMHighResTimeStamps as timestamps per issue #105
midi/specification.html
--- a/midi/specification.html	Thu May 31 12:08:38 2012 +0100
+++ b/midi/specification.html	Fri Jun 01 18:40:20 2012 +0300
@@ -103,7 +103,14 @@
       <p>
         The term <dfn><a href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastreamtrack">
         MediaStreamTrack</a></dfn> is defined in the
-        <a href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html">getUserMedia Specification</a>
+        <a href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html">getUserMedia Specification</a>.
+      </p>
+      <p>
+        The term <dfn><a href=
+        "http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html#sec-DOMHighResTimeStamp"
+        >DOMHighResTimeStamp</a></dfn> is defined in the <a href=
+        "http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html"
+        >High Resolution Time Specification</a>.
       </p>
 <!-- FIXME: This list is not exhaustive. -->
     </section>
@@ -237,7 +244,8 @@
           </ol>
         </dd>
         <dt><a>MIDIMessage</a> createMIDIMessage(short status, Uint8Array
-                                    data, long? timestamp, short? channel)</dt>
+                                    data, DOMHighResTimeStamp? timestamp,
+                                    short? channel)</dt>
         <dd>
           <p>
             Creates and returns a new <code><a>MIDIMessage</a></code> according
@@ -266,9 +274,9 @@
             <li>
               <p>
                 Let <var>timestamp</var> be the
-                <code>long</code> argument, if not null. Else let
-                <var>timestamp</var> be the current time as the amount of
-                milliseconds from the UNIX Epoch.
+                <code>DOMHighResTimeStamp</code> argument, if not null. Else
+                let <var>timestamp</var> be the current time as a
+                <code>DOMTimeHighResTimeStamp</code>.
               </p>
             </li>
 
@@ -496,11 +504,11 @@
       <dl title="[NoInterfaceObject]
                  interface MIDIMessage"
           class="idl">
-        <dt>readonly attribute unsigned long timeStamp</dt>
+        <dt>readonly attribute DOMHighResTimeStamp timestamp</dt>
         <dd>
           <p>
-            A Unix epoch timestamp signifying when the event occured, will
-            occur or should occur.
+            A <code>DOMHighResTimeStamp</code> signifying when the event
+            occured, will occur or should occur.
           </p>
         </dd>
         <dt>readonly attribute short status</dt>