Hi Erel,
I am a newcomer in the B4X environment, and I am possibly missing something regarding the internals of MediaPlayer. Actually, my intention is to build an application composed of a set of buttons. Once the user clicks on a button, a predefined music file will be played repeatedly. I have already prepared a music file for that which has a duration of 5 secs, but when it comes to be repeatly executed by the mediaplayer, I've noticed a very short gap in the music during the loop of execution. I've tried to process the audio file with Audicity just to make the ending frequency of the file to follow its starting frequency but I've noticed that the gap although shorter it still exists. So, I was wondering if there is any kind of technique to use two MediaPlayer objects where the second one will start playing the file before the first one finishes the execution or any other workaround that will make the transition of looping cycles more smooth. Attached you can find my code.
Thanks