From f9de100a09303757e7136867596d2f81023cbc4b Mon Sep 17 00:00:00 2001 From: AShiningRay Date: Fri, 22 Nov 2024 10:41:07 -0300 Subject: [PATCH] PlatformPlayer: Do not close the synthesizer on close(). 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. --- src/org/recompile/mobile/PlatformPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/recompile/mobile/PlatformPlayer.java b/src/org/recompile/mobile/PlatformPlayer.java index d28cfc7..186d4bb 100644 --- a/src/org/recompile/mobile/PlatformPlayer.java +++ b/src/org/recompile/mobile/PlatformPlayer.java @@ -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; }