Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to play a sound in a application

Status
Not open for further replies.

cyberde

Programmer
Jun 24, 2002
3
NL
Does anybody know how to play a sound in a application made with Delphi?
 
Place a Mediaplayer on a form.
Select Devicetype dtAutoSelect.
Set AutoOpen to true.
Set Filename to an existing wav file (create with explorer/new/WaveAudio)

compile and run the Program
Press the "play"-Button
Use your speakers
Press the "stop"-Button
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top