venominheart
asked on
music play
how mediaplayer works? What are all the functions and scripts?
delphi (3) helpfile.hlp:
search "multimedia devices"
"MCI" . etc...
to play a file:
mediaplayer1.filename:="c: \file.mid" ;
mediaplayer1.open;
mediaplayer1.play;
to stop
mediaplayer1.stop;
mediaplayer1.close; {device must be open}
// if mediaplayer1.filename <> '' then mediaplayer1.close;
mediaplayer1.devicetype:=d tAutoSelec t
dtcdaudio
...
for use with for example dtcdaudio: mediaplayer.next;
AND SO oN........
SkAtAn
search "multimedia devices"
"MCI" . etc...
to play a file:
mediaplayer1.filename:="c:
mediaplayer1.open;
mediaplayer1.play;
to stop
mediaplayer1.stop;
mediaplayer1.close; {device must be open}
// if mediaplayer1.filename <> '' then mediaplayer1.close;
mediaplayer1.devicetype:=d
dtcdaudio
...
for use with for example dtcdaudio: mediaplayer.next;
AND SO oN........
SkAtAn
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you want to play an audio CD, set the DeviceType property to dtCDAudio.
I can send you an exmple of a CD player application I wrote. Or if you tell what exctly you want to do, I can send you some other example.
You can also look at these:
http://torry.rimini.com/samples/samples/abcdplay.zip
http://torry.rimini.com/samples/samples/looper.zip
http://torry.rimini.com/samples/samples/midiroll.zip