Solved

music play

Posted on 1998-12-18
3
179 Views
Last Modified: 2010-04-04
how mediaplayer works? What are all the functions and scripts?
0
Comment
Question by:venominheart
  • 2
3 Comments
 
LVL 3

Expert Comment

by:Matvey
ID: 1351808
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
 
LVL 1

Expert Comment

by:skatan187
ID: 1351809
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
 
LVL 1

Accepted Solution

by:
skatan187 earned 50 total points
ID: 1351810
..
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Connection between libmysql.dll and MySQL Versions 7 113
QRReport  TQrmemo vertical stretching 1 53
Delphi...Split view - idea? 1 90
enhance the following code 3 37
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question