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

Skip to content
Commit 631ffd4f authored by Sandeep Samdaria's avatar Sandeep Samdaria
Browse files

Alternating packets queued in the audio buffer

Problem: BTIF a2dp sink receives the media data and enqueues the
audio packet.It's possible that the audio buffer can become full
before being flushed. Once, the buffer is full the enqueue_buffer
the stack starts dropping the old packets. However, it doesn't
queue the incoming packet. This results in the packet to be
dropped alternatively and degrading the audio quality.

Solution: First queue up the incoming packet. Once the queue is
full, drop the last packet to make space for the next packet.
This will ensure there is always a space in the next incoming
packet and alternate packets are not dropped.

Bug: 279956598
Test: m seahawk-userdebug. Tested on the seahawk device by queueing the packet.
Tag: #stability
Change-Id: Ie2377ee47de56ee2fa601f85ab363c02ea02e61c
parent b9b157e9
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