Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Encerra thread de jogo e de som

  • Loading branch information...
commit 7bd0c8b81386de5a3f8344586ed87d4d341484f9 1 parent bafadae
muriloq authored
6 src/com/muriloq/android/phoenix/Phoenix.java
@@ -151,7 +151,7 @@ Phoenix Emulator by Richard Davies (R.Davies@dcs.hull.ac.uk) and MAME
151 151 private int[] gameControl = new int []{1,1,1,1,1,1,1,1};
152 152 private int interruptCounter = 0;
153 153
154   - private boolean autoFrameSkip=false;
  154 + private boolean autoFrameSkip=true;
155 155 private boolean realSpeed=true;
156 156 private boolean mute=false;
157 157 private int frameSkip = 1;
@@ -750,4 +750,8 @@ public boolean isMute() {
750 750 return mute;
751 751 }
752 752
  753 + public void onStop() {
  754 + this.sound.stop();
  755 + }
  756 +
753 757 }
5 src/com/muriloq/android/phoenix/PhoenixGame.java
@@ -205,6 +205,8 @@ protected void onDraw(Canvas canvas) {
205 205
206 206 public void onStop() {
207 207 this.stop = true;
  208 + this.destroy = true;
  209 + this.phoenix.onStop();
208 210 }
209 211
210 212 public void onPause() {
@@ -221,7 +223,8 @@ public void onRestart() {
221 223 }
222 224
223 225 public void onDestroy(){
224   - destroy = true;
  226 + //destroy = true;
  227 + onStop();
225 228 }
226 229
227 230

0 comments on commit 7bd0c8b

Please sign in to comment.
Something went wrong with that request. Please try again.