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

Commit a9931abf authored by chongyin's avatar chongyin Committed by Andy Hung
Browse files

AudioPlaybackCapture: solve patchTrack unable to update speed issue



PatchRecord is in the output thread of audiohal. Every time the track
is consumed by the mixer and the ReleaseBuffer is executed, the data
obtainBuffer is written into the PatchBuffer. When a third-party application
uses AudioTrack::setPlaybackRate to timestretch the audio data, PatchRecord
and PatchTrack need to update framecount and speed at the same time. And the
remotesubmix thread where PatchTrack is located needs to perform timestretch
processing synchronously to solve the problem of Track::interceptBuffer
dropping frames.

Flag: EXEMPT bugfix
Test: atest CtsMediaAudioTestCases
Bug: 416364490
Signed-off-by: default avatar <v-chongyin@xiaomi.com>
Change-Id: I6b831b5a86ead8d940b9e0f474268c750b01592c
parent d645a9de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment