midi files playback problem
Moderators: Hacker, petermad, Stefan2, white
midi files playback problem
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.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
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
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com