OSDN Git Service

RESTRICT AUTOMERGE: aaudio: fix FIFO wrapround frame counts
authorPhil Burk <philburk@google.com>
Sat, 21 Apr 2018 00:24:38 +0000 (17:24 -0700)
committerBryan Ferris <bferris@google.com>
Thu, 27 Dec 2018 23:01:28 +0000 (23:01 +0000)
commit685607be811e6d5fffc407d71a2703de9c351969
treeb5b0155ddf7560afee470d01209e7bddfde9474c
parentfea6cc13b019970b33bdc931a9b854590fe46ef5
RESTRICT AUTOMERGE: aaudio: fix FIFO wrapround frame counts

The number of frames in the second part was incorrect
when it wrapped past the end of the FIFO.

Bug: 78139448
Bug: 120789744
Test: adb shell aaudio_loopback -c2 -C2 -tm -m2 -Pl -pn
Change-Id: Ib6a22f30f0ee5321444c6d6137d9488943c34f3d
media/libaaudio/src/fifo/FifoBuffer.cpp