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

Commit b28079fe authored by chongyin's avatar chongyin Committed by Eric Laurent
Browse files

audio: When the system load is high, there is a high probability of popping...


audio: When the system load is high, there is a high probability of popping sound when playing AudioTrack created with ToneGenerator.

When creating the AudioTrack with ToneGenerator, the frame count used is 0. The frame count calculated by Threads is too small, leading to a low tolerance for the AudioTrack thread runnable, which can easily result in insufficient data being written as 0 data.

Bug: 406127575
Test:
1. Incoming call in the game scene.
2. Answer the call and then hang up.
3. Observe the hang-up sound.
Flag: EXEMPT bug fix

Signed-off-by: default avatarv-chongyin <v-chongyin@xiaomi.com>
(cherry picked from https://android-review.googlesource.com/q/commit:63e4d8712238eba979a78d6d2673e836ba193f75)
Merged-In: If2551f85d20fcf79f4422670c71d79d9febe89db
Change-Id: If2551f85d20fcf79f4422670c71d79d9febe89db
parent 2f859d52
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