forked from hex007/freej2me
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PlatformPlayer + Manager: Make MIDI Synthesizer and Receiver static
This allows all sequencers (in short, every MIDI player requested by any jar) to use the same, fixed references to synthesizer and receiver. So instead of opening multiple synthesizers and getting receivers whenever a MIDI is loaded, we cut all of it by just getting the static synth's receiver every time. Not only is it faster, but it also helps make midi volume changes more functional in Java 8, with a small delay of 50ms being applied to every receiver message to further help the sequencer follow through.
- Loading branch information
1 parent
62b0d7a
commit 0f2f8c9
Showing
2 changed files
with
69 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters