Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c9da3f78 authored by Robert Wu's avatar Robert Wu
Browse files

USB MIDI: Fix incorrect timestamps

Timestamp is calculated before waiting for USB data. When USB data comes in,
the timestamp from when it starts to wait is used. This makes the timestamp
very inaccurate.

The fix is to move "timestamp = System.nanoTime()" after getting the USB
response.

Bug: 267519645
Test: Connect phone with MIDI Scope app to USB MIDI 2.0 keyboard
Test: Play notes on the keyboard and verify timestamps look reasonable
Change-Id: Ic3bccd89b65787badf3139964983572f83d99eaa
parent ca9e2463
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment