[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

music play

how mediaplayer works? What are all the functions and scripts?
0
venominheart
Asked:
venominheart
  • 2
1 Solution
 
MatveyCommented:
If you want to play a fie, write it in the FileNeme property. If this is a standard multimedia file, it'll be playd automatically if you set the AutoOpen property to true.
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
0
 
skatan187Commented:
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:=dtAutoSelect
                          dtcdaudio
                            ...

for use with for example dtcdaudio: mediaplayer.next;


AND SO oN........

SkAtAn
0
 
skatan187Commented:
..
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now