Solved

music play

Posted on 1998-12-18
3
176 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
Comment Utility
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
Comment Utility
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
Comment Utility
..
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now