From b5a12ca98ab572878cbebfead5cab05b69023a37 Mon Sep 17 00:00:00 2001
From: Michael Wilson
+ The number of bytes remaining in the {{MIDIOutput}}'s queue
+ waiting to be sent by the underlying system. While the
+ underlying system is saturated (i.e. active send requests have
+ reached an implementation-specific maximum and the system is
+ temporarily not able to accept more work), additional calls to
+ {{MIDIOutput/send()}} are buffered in the queue and increase
+ {{MIDIOutput/sendQueueSize}} by the number of bytes in
+
+ This [=event handler=], of type "dequeue", MUST be supported by
+ all objects implementing the {{MIDIOutput}} interface. It is
+ called to signal a decrease in {{MIDIOutput/sendQueueSize}}.
+
[SecureContext, Exposed=(Window,Worker)] interface MIDIOutput : MIDIPort {
+ readonly attribute unsigned long sendQueueSize;
+ attribute EventHandler ondequeue;
undefined send(sequence<octet> data, optional DOMHighResTimeStamp timestamp = 0);
undefined clear();
};
+
data. Once the underlying system makes sufficient
+ progress on the current workload, it becomes unsaturated and
+ processes queued data, decreasing {{MIDIOutput/sendQueueSize}}
+ by the number of bytes sent.
+
"MIDIPortConnectionState.closed">"closed", asynchronously
try to [=open the port=].
+ Increase {{MIDIOutput/sendQueueSize}} by the number of bytes in + data when the message is enqueued. When the + underlying system finishes sending the enqueued data + to the port, decrease {{MIDIOutput/sendQueueSize}} by the number + of bytes in data and [=fire an event=] named + "dequeue" at the {{MIDIOutput}}. +