Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Fix looping sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo27 committed Dec 7, 2016
1 parent 1e725d4 commit d88d90c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/chrislo27/rhre/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Screen getAssetLoadingScreenToUse() {

@Override
public void create() {
Main.version = "v2.0.0";
Main.version = "v2.0.1";
GlobalVariables.versionUrl = "https://raw.githubusercontent.com/chrislo27/VersionPlace/master/RHRE-version" +
".txt";

Expand Down
4 changes: 4 additions & 0 deletions core/src/chrislo27/rhre/track/Remix.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.badlogic.gdx.audio.Music
import com.badlogic.gdx.files.FileHandle
import com.badlogic.gdx.math.MathUtils
import com.badlogic.gdx.utils.Disposable
import ionium.registry.AssetRegistry

class Remix {

Expand Down Expand Up @@ -170,12 +171,15 @@ class Remix {
when (ps) {
PlayingState.PLAYING -> {
updateDuration()
AssetRegistry.instance().resumeAllSound()
}
PlayingState.PAUSED -> {
music?.music?.pause()
AssetRegistry.instance().pauseAllSound()
}
PlayingState.STOPPED -> {
resetEntitiesAndTracker()
AssetRegistry.instance().stopAllSound()
}
}
}
Expand Down

0 comments on commit d88d90c

Please sign in to comment.