midi files playback problem

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Cvulturbo
Junior Member
Junior Member
Posts: 30
Joined: 2013-02-09, 14:25 UTC
Location: eu ru

midi files playback problem

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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
Author of Total Commander
https://www.ghisler.com
Cvulturbo
Junior Member
Junior Member
Posts: 30
Joined: 2013-02-09, 14:25 UTC
Location: eu ru

Post 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).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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?
Author of Total Commander
https://www.ghisler.com
Post Reply