mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Always shut down audio, regardless of why the task is being destroyed. Might help #9771
This commit is contained in:
1 parent
cefb57d778
commit
7a3a620ff2
1 file changed
+4
-1
@@ -91,6 +91,9 @@ public class NativeActivity extends Activity implements SurfaceHolder.Callback {
|
||||
private Vibrator vibrator;
|
||||
|
||||
private boolean isXperiaPlay;
|
||||
|
||||
// This is to avoid losing the game/menu state etc when we are just
|
||||
// switched-away from or rotated etc.
|
||||
private boolean shuttingDown;
|
||||
private static int RESULT_LOAD_IMAGE = 1;
|
||||
|
||||
@@ -556,9 +559,9 @@ public class NativeActivity extends Activity implements SurfaceHolder.Callback {
|
||||
mSurfaceView.onDestroy();
|
||||
mSurfaceView = null;
|
||||
}
|
||||
NativeApp.audioShutdown();
|
||||
if (shuttingDown || isFinishing()) {
|
||||
unregisterCallbacks();
|
||||
NativeApp.audioShutdown();
|
||||
NativeApp.shutdown();
|
||||
initialized = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user