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

Skip to content
Commit 84e9721f authored by Jan Sebechlebsky's avatar Jan Sebechlebsky
Browse files

Bypass audio focus handling for VDM

When VirtualDevice is configured with custom
device policy for audio, the audio tied to device
specific session id is likely rerouted to loopback
and streamed to different destination.

In this situation it's not desired that the playback
on VDM affects playback on the native device and vice-versa.

This change modifies AudioManager so the requests for audio
focus are ignored for VDM playback. This allows apps to write
universal code for focus-aware audio playback which will behave
correctly on native and virtual devices.

Bug: 261698699
Bug: 249777386
Test: atest AudioFocusTest
Change-Id: If48d841cb64b66d7d08e62bcbb9179fab5910aaa
parent 714a0f90
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