Syncro sound playback

peacemaker

Expert
Licensed User
Longtime User
Hi, all

Possible now playback possibility of several audio files, but strickly one by one ?
 
Hmm, think this code should be OK ? If MediaPlayer already initialized.

Sub PlaySound (Dir,FileName)
Do While mp.IsPlaying
DoEvents
Loop
mp.Load(Dir, FileName)
mp.Play
End Sub
 
This loop is just for to be sure for some seconds that no need to go on.

But actually this code works strange - it plays each sound in a sequence, but a small part at the end is cut, not played. Excepting the latest one.

Extra waiting loops in this sub do not help to play fully.
 
Last edited:
Solved. This code is OK, but this buggy emulator play not correctly. Real device plays OK.
Topic is to be closed.
 
Last edited:
No - this code is not OK: some devices users report that their devices also play as the emulator: previous mp3 file is played almost to the end, then second or 2 are cut and the next mp3 in the queue is played.
But many devices play OK, one by one.

Maybe anyone who knows for now - how to play sequence of several mp3-files one by one well ?
 
Last edited:
I found that just MediaPlayer object plays files not completely !
For example, a MP3 file of 612 milliseconds it plays only up to 418 milliseconds in the emulator.
Why ?
 
Nothing helps, many tests show that need to have extra 0.5 sec at the media file end to make sure that whole file is whole audible from MediaPlayer.
 
Any correct solution for this moment ?
 
Back
Top