Menu

#46 Android, Bug when looping whole tune (and fix!)

v1.0_(example)
open
nobody
None
5
2019-04-02
2019-04-02
Anonymous
No

I wanted to loop the whole midi-file. Would expect it to work by ticking "Play measures in a loop" but didn't on my device, just stopped at end.
Fix: Line 637 in MidiPlayer.java should be 'else if' instead of 'if'

        /* Stop if we've reached the end of the song */
        else if (currentPulseTime > midifile.getTotalPulses()) {
            DoStop();
            return;
        }

Discussion

Anonymous
Anonymous

Add attachments
Cancel