[automerge] Audio: SpatializerHelper: fix native audio server death handling 2p: 99c61c6bd1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17195443 Bug: 224701940 Change-Id: If0b8735d1c0bb38941532c2525b99fc653d1e428
This commit is contained in:
@@ -176,6 +176,7 @@ public class SpatializerHelper {
|
||||
*/
|
||||
synchronized void reset(boolean featureEnabled) {
|
||||
Log.i(TAG, "Resetting");
|
||||
releaseSpat();
|
||||
mState = STATE_UNINITIALIZED;
|
||||
mSpatLevel = Spatializer.SPATIALIZER_IMMERSIVE_LEVEL_NONE;
|
||||
mCapableSpatLevel = Spatializer.SPATIALIZER_IMMERSIVE_LEVEL_NONE;
|
||||
@@ -517,10 +518,10 @@ public class SpatializerHelper {
|
||||
try {
|
||||
mSpat.registerHeadTrackingCallback(null);
|
||||
mSpat.release();
|
||||
mSpat = null;
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Can't set release spatializer cleanly", e);
|
||||
}
|
||||
mSpat = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user