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

Commit 5cbb4d7d authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "Audio: SpatializerHelper: fix native audio server death handling" into sc-v2-dev

parents 18242148 99c61c6b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
        }
    }