Skip to content

Commit

Permalink
Preserve volume between loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Frosty-J authored Feb 25, 2024
1 parent 1103700 commit c2e13e1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ public boolean update () {
} else if (looping) {
try {
// NOTE: this just creates a new decoder instead of reusing the existing one.
float volume = getVolume();
play(currentFile);
setVolume(volume);
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit c2e13e1

Please sign in to comment.