OSDN Git Service

Reduce the number of PCM data reads for aptX and aptX HD
authorPavlin Radoslavov <pavlin@google.com>
Fri, 30 Mar 2018 19:14:14 +0000 (12:14 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Sat, 31 Mar 2018 03:32:58 +0000 (03:32 +0000)
commit9a85d82e1d7e439185c93ea153f2e79dc3c65a18
tree331a49668fe377a6b1d47153ffbd6f4e935c845a
parent95e0d5e1ee7595140682a59b7bdb2e2d2b667ea2
Reduce the number of PCM data reads for aptX and aptX HD

For every periodic aptX / aptX HD data packet, use a single read
operation for all PCM data that needs to be encoded, instead of
using multiple reads of smaller blocks of data.

Bug: 70899260
Test: Manual: stream to aptX/aptX HD headset, change the sample rate
Change-Id: Ifcb8302589f24f5d7ab89c645c50d6905197fb7f
Merged-In: Ifcb8302589f24f5d7ab89c645c50d6905197fb7f
(cherry picked from commit c27d80a09e762b19eec09810822a5b6f39720e2b)
stack/a2dp/a2dp_vendor_aptx_encoder.cc
stack/a2dp/a2dp_vendor_aptx_hd_encoder.cc