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

Skip to content
Commit 2e17eef8 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Eric Laurent
Browse files

AudioSink: Fix for gapless offload playback



Gapless mode is not working for offload playback due to mismatch
in flags of current track and next track to be played.

AUDIO_OUTPUT_FLAG_DIRECT is added in AudioTrack flags for current track
which does not match exactly with requested flags for next track.
Because of this mismatch, reuse of the AudioTrack is not allowed.

To fix this, update audio sink flags with requested flags and use
track flags only to setPlaybackRate if AUDIO_OUTPUT_FLAG_DIRECT flag
is not set.

Bug: 23221273

authored-by: default avatarPreetam Singh Ranawat <apranawat@codeaurora.org>

Change-Id: I52761ccd854b66a7bc218e83c9b44598771c46f7
parent 44a63fa2
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