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.
PlatformPlayer: Handle looping in a different way.
Neither MIDI nor WAV threw END_OF_MEDIA events once a loop was completed. And because of that, neither was the STARTED event. So now we don't actually set the loop count on the Sequencer and Clip objects, instead the looping is managed by the metaEventListener and LineListener added to the media once it's started, as it can have access to notifying the player listener accordingly. Sonic 1 Part One requires this in order to loop the invincibility song and handle the game over transition correctly. Hopefully, this won't break anything else.
- Loading branch information
1 parent
e8b5ad9
commit f375963
Showing
1 changed file
with
25 additions
and
15 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