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

Skip to content
Commit 3acc9b1b authored by guonaichao's avatar guonaichao Committed by 郭奶超
Browse files

AudioPlaybackCapture: solve second output data consumed low 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.

Test: atest AudioPlaybackCaptureTest
Bug: 345666452

Change-Id: I39962c754426485d5bd60be21eceba11a171abd6
Signed-off-by: default avatarguonaichao <guonaichao@xiaomi.com>
parent 0ab78043
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