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

Commit ca6d51f6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "SpatializerHelper: fix routing check in canBeSpatialized" into...

Merge "SpatializerHelper: fix routing check in canBeSpatialized" into sc-v2-dev am: c24976db am: efcbe7ae

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16381685

Change-Id: I76f53a978c539d1e99b4ae398cb1f481c3a8ac07
parents dad190e8 efcbe7ae
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -551,9 +551,9 @@ public class SpatializerHelper {
                logd("canBeSpatialized false due to usage:" + attributes.getUsage());
                return false;
        }
        AudioDeviceAttributes[] devices =
        AudioDeviceAttributes[] devices = new AudioDeviceAttributes[1];
        // going through adapter to take advantage of routing cache
                (AudioDeviceAttributes[]) mASA.getDevicesForAttributes(attributes).toArray();
        mASA.getDevicesForAttributes(attributes).toArray(devices);
        final boolean able = AudioSystem.canBeSpatialized(attributes, format, devices);
        logd("canBeSpatialized returning " + able);
        return able;