diff --git a/src/org/recompile/mobile/PlatformPlayer.java b/src/org/recompile/mobile/PlatformPlayer.java index d28cfc7..9f14d4e 100644 --- a/src/org/recompile/mobile/PlatformPlayer.java +++ b/src/org/recompile/mobile/PlatformPlayer.java @@ -454,7 +454,12 @@ public void deallocate() { } // Prefetch does "nothing" in each internal player public void close() { midi.close(); - synthesizer.close(); + /* + * We can't close the custom synth, otherwise any new midi files will use the + * default soundfont. + */ + if (!Manager.useCustomMidi && !Manager.hasLoadedCustomMidi) { synthesizer.close(); } + midiSequence = null; receiver = null; }