Skip to content

Commit

Permalink
Merge pull request #439 from complyue/bugfix-helicopter-sound
Browse files Browse the repository at this point in the history
bugfix: helicopter sound stays forever if was playing when back from finish screen
  • Loading branch information
agateau authored May 12, 2024
2 parents 2b4cfdd + dafb5c5 commit f36cc1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Fixed-20240512-164437.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Fixed
body: helicopter sound stay forever
time: 2024-05-12T16:44:37.16463314+08:00
3 changes: 3 additions & 0 deletions core/src/com/agateau/pixelwheels/racescreen/Helicopter.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ public void reset() {}

@Override
public void dispose() {
if (mSoundPlayer != null) {
mSoundPlayer.stop();
}
sPool.free(this);
}

Expand Down

0 comments on commit f36cc1c

Please sign in to comment.