forked from hex007/freej2me
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nokia: Sound: Improve OTT decode accuracy and dump streams properly
Using the faster setSequence() path to load up new tone sequences onto an existing player instead of creating a new player would make it so those sequences would not be dumped properly. Should be fine now. Also, pause notes are now omitted from the decoded MIDI file, with the tick counter just skipping ahead whenever a pause is identified, no longer adding "empty" notes onto the stream. The end result sounds better, uses a bit less memory, and also decodes slightly faster too, depending on how many pauses are there. Some games like to put pauses at the end of the sequence, so in those cases the dumped stream will have the proper duration as well, as no useless notes will be added. Related to #57, probably fixes it entirely.
- Loading branch information
1 parent
f27b6c3
commit b114677
Showing
1 changed file
with
26 additions
and
19 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