Permalink
Browse files

Encerra thread de jogo e de som

  • Loading branch information...
1 parent bafadae commit 7bd0c8b81386de5a3f8344586ed87d4d341484f9 @muriloq committed Aug 6, 2011
@@ -151,7 +151,7 @@ Phoenix Emulator by Richard Davies (R.Davies@dcs.hull.ac.uk) and MAME
private int[] gameControl = new int []{1,1,1,1,1,1,1,1};
private int interruptCounter = 0;
- private boolean autoFrameSkip=false;
+ private boolean autoFrameSkip=true;
private boolean realSpeed=true;
private boolean mute=false;
private int frameSkip = 1;
@@ -750,4 +750,8 @@ public boolean isMute() {
return mute;
}
+ public void onStop() {
+ this.sound.stop();
+ }
+
}
@@ -205,6 +205,8 @@ protected void onDraw(Canvas canvas) {
public void onStop() {
this.stop = true;
+ this.destroy = true;
+ this.phoenix.onStop();
}
public void onPause() {
@@ -221,7 +223,8 @@ public void onRestart() {
}
public void onDestroy(){
- destroy = true;
+ //destroy = true;
+ onStop();
}

0 comments on commit 7bd0c8b

Please sign in to comment.