Page 1 of 1

midi files playback problem

Posted: 2016-05-02, 00:04 UTC
by Cvulturbo
when playing midi file in media player in loop mode, after first iteration (of loop) instruments are mixed and sounds incorrect, length of media gives incorrect value.

Posted: 2016-05-02, 08:57 UTC
by ghisler(Author)
The player uses the standard Android MediaPlayer class. Maybe it has problems with queuing the same track repeatedly? Try this:
1. Put the same track 2 times in the queue and loop this
2. Put the track plus a very short mp3 (e.g. 1 second silence) in the queue and loop it

Posted: 2016-05-02, 12:22 UTC
by Cvulturbo
1. loop same track 2 times gives same problem - only first time only first track sounds well.

2. mp3 playing nice in loop with midi. but midi itself sounds good only first time. on second iteration length of midi shows ramdom number of minutes and instruments are mixed (not synchronized).

Posted: 2016-05-05, 07:31 UTC
by ghisler(Author)
Does it help to close (with red X) and re-open the player? Just the player, not Total Commander? In this case, it would help to delete the media player object and recreate it for each midi track. I could implement this easily if it helps.

Posted: 2016-05-09, 08:59 UTC
by ghisler(Author)
Any news? I tried with the midi files I had, but they all played OK also in a loop. I tried on Android 5. Could you provide a sample midi file with this problem, and tell me your Android version, please?