I've problems using TMediaplayer to play Wave file
1. I have wave files like this... Wav1.Wav, Wav2.Wav, ... and so on.
2. I want to play continueous wave phrase recorded in each wave files but problems arise
When I use TMediaplayer, I named it "Media1" and put the code like this
with Media1 do begin
FileName := 'C:\Wav1.Wav';
FileName := 'C:\Wav2.Wav';
... and so on
Problems is that Media1 doesn't seem to play Wav1.wav, it only play the last file in the code.
What I know for sure is that the code excuted simultaneously after it play the first file, it execute the next command immediately. That is, it stop playing the first file and immediately play the second file. That make the code unacceptable. I've tried using
Media1.Wait := True;
It doesn't seem to work. Result is the same as before.
So tell me how to make it play the first file till it finished. Then play the second file so that it result in sequentially voice...