summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-05-18 16:43:43 -0700
committerGlenn Kasten <gkasten@google.com>2015-05-19 08:33:36 -0700
commita32d5c8472bd5aad855165edf6d7253e35e42393 (patch)
tree0fe80740ca8b64b1fa1c621fbc820bf57213518b /media
parent9939961db9765f4e900955cf64ce1c3ceeb9362e (diff)
downloadframeworks_base-a32d5c8472bd5aad855165edf6d7253e35e42393.zip
frameworks_base-a32d5c8472bd5aad855165edf6d7253e35e42393.tar.gz
frameworks_base-a32d5c8472bd5aad855165edf6d7253e35e42393.tar.bz2
send without timestamp is not equivalent to send now
Change-Id: I68decbd005932c762ccd376ee80b52ac9884fba4
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/midi/MidiReceiver.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/media/java/android/media/midi/MidiReceiver.java b/media/java/android/media/midi/MidiReceiver.java
index 85c451f..3ecb328 100644
--- a/media/java/android/media/midi/MidiReceiver.java
+++ b/media/java/android/media/midi/MidiReceiver.java
@@ -87,7 +87,8 @@ abstract public class MidiReceiver {
}
/**
- * Called to send MIDI data to the receiver
+ * Called to send MIDI data to the receiver without a timestamp.
+ * Data will be processed by receiver in the order sent.
* Data will get split into multiple calls to {@link #onSend} if count exceeds
* {@link #getMaxMessageSize}.
*
@@ -97,11 +98,13 @@ abstract public class MidiReceiver {
* @throws IOException
*/
public void send(byte[] msg, int offset, int count) throws IOException {
- send(msg, offset, count, System.nanoTime());
+ // TODO add public static final TIMESTAMP_NONE = 0L
+ send(msg, offset, count, 0L);
}
/**
- * Called to send MIDI data to the receiver to be handled at a specified time in the future
+ * Called to send MIDI data to the receiver with a specified timestamp.
+ * Data will be processed by receiver in order first by timestamp, then in the order sent.
* Data will get split into multiple calls to {@link #onSend} if count exceeds
* {@link #getMaxMessageSize}.
*