Skip to content

Commit

Permalink
PlatformPlayer: Do not close the synthesizer on close().
Browse files Browse the repository at this point in the history
This appears to be unnecessary, and it not only broke custom
soundfont support, but also made it so Orcs and Elves' effects
play shorter than intended.
  • Loading branch information
AShiningRay committed Nov 22, 2024
1 parent 54519c7 commit f9de100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/recompile/mobile/PlatformPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public void deallocate() { } // Prefetch does "nothing" in each internal player
public void close()
{
midi.close();
synthesizer.close();
synthesizer = null;
midiSequence = null;
receiver = null;
}
Expand Down

0 comments on commit f9de100

Please sign in to comment.