Merge "SpatializerHelper: fix routing check in canBeSpatialized" into sc-v2-dev am: c24976db3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16381685 Change-Id: I9aa427522e824de95c13cc777cb259ca75680fd9
This commit is contained in:
@@ -551,9 +551,9 @@ public class SpatializerHelper {
|
||||
logd("canBeSpatialized false due to usage:" + attributes.getUsage());
|
||||
return false;
|
||||
}
|
||||
AudioDeviceAttributes[] devices =
|
||||
// going through adapter to take advantage of routing cache
|
||||
(AudioDeviceAttributes[]) mASA.getDevicesForAttributes(attributes).toArray();
|
||||
AudioDeviceAttributes[] devices = new AudioDeviceAttributes[1];
|
||||
// going through adapter to take advantage of routing cache
|
||||
mASA.getDevicesForAttributes(attributes).toArray(devices);
|
||||
final boolean able = AudioSystem.canBeSpatialized(attributes, format, devices);
|
||||
logd("canBeSpatialized returning " + able);
|
||||
return able;
|
||||
|
||||
Reference in New Issue
Block a user