Skip to content
Commit 2ec2ec5a authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

SpatializerHelper: fix init of compatibility for attached devices

 SpatializerHelper.init() is called when AudioService starts, but
also after each audioserver restart. After evaluating the
transaural/binaural capabilities of the spatializer effect,
the associated devices were added to the list of compatible
devices regardless of whether they were already present, this
was causing duplicated entries in the list.
 Also avoid always setting the enabled field in the list of
compatible devices to true if the device was already in the list.

Bug: 230871496
Test: repro in bug

Change-Id: If76658677b44d22414fa393208b69d8ec82592fd
parent 0423dff2
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