spat
asked on
Edit Play List
How could I make the cd play the tracks in the order i tell it to. When one track is done playing, it should go on to the next track in a string of number or something
I really don't know.
HeLlO yOu TwO! jUsT wOnDeRiNg WhY aRe YoU pLaYiNg TrIcKs On EaCh OtHeR???
ReGaRdS,
ViKtOr IvAnOv
ReGaRdS,
ViKtOr IvAnOv
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I almost got your code to work but it play about the first second and then stops.
what do think i should do?
what do think i should do?
Set MP.TimeFormat to tfMilliseconds.
ASKER
it seems to work now but when you change tracks, it stops and you have to press play again.
The problem is with this line:
if MP.Mode=mpPaused then MP.Resume;
The point is, that when you call MP.Pause, MP.Mode sets to mpStopped, not mpPaused.
You must add some variable (i.e PlayPressed:boolean), that indicates that Play button was pressed by user. Set PlayPressed to true, when user presses Play button. Set PlayPressed to false, when user presses Stop button. Then change the line to
if (MP.Mode=mpStopped) and PlayPressed then MP.Resume;
A.
if MP.Mode=mpPaused then MP.Resume;
The point is, that when you call MP.Pause, MP.Mode sets to mpStopped, not mpPaused.
You must add some variable (i.e PlayPressed:boolean), that indicates that Play button was pressed by user. Set PlayPressed to true, when user presses Play button. Set PlayPressed to false, when user presses Stop button. Then change the line to
if (MP.Mode=mpStopped) and PlayPressed then MP.Resume;
A.