Merge "SpatializerHelper: fix routing check in canBeSpatialized" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c24976db3f
@@ -551,9 +551,9 @@ public class SpatializerHelper {
|
|||||||
logd("canBeSpatialized false due to usage:" + attributes.getUsage());
|
logd("canBeSpatialized false due to usage:" + attributes.getUsage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AudioDeviceAttributes[] devices =
|
AudioDeviceAttributes[] devices = new AudioDeviceAttributes[1];
|
||||||
// going through adapter to take advantage of routing cache
|
// 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);
|
final boolean able = AudioSystem.canBeSpatialized(attributes, format, devices);
|
||||||
logd("canBeSpatialized returning " + able);
|
logd("canBeSpatialized returning " + able);
|
||||||
return able;
|
return able;
|
||||||
|
|||||||
Reference in New Issue
Block a user