commit | 2136d8d77e40a6712ed2cc9314a2fb74201136b1 | [log] [tgz] |
---|---|---|
author | Robert Wu <robertwu@google.com> | Tue Jan 25 19:36:02 2022 +0000 |
committer | Robert Wu <robertwu@google.com> | Wed Jan 26 23:20:12 2022 +0000 |
tree | abc8b5091824669a0e484e1273d6eb47e605c599 | |
parent | 91cfa7ff07612192644bb0106c224444cde7257d [diff] |
amidi: Don't create extra write buffer When sendWithTimestamp is called, a ~1000 byte buffer is created even if nothing is sent. This CL adds a check to the size to save space in the buffer if it's not needed. Bug: 216328047 Test: atest NativeMidiEchoTest Change-Id: I0bfddb6ca7416c5df5e938bdd09a5f1efdacaf5c