Solved

Get defualt path of wave file

Posted on 2000-03-01
3
147 Views
Last Modified: 2010-04-04
Hi,
I want defult path of wave file such like wave on error in windows beep.wav
and in other Pc or OS xx.wav i want the defult path to send it to SndPalySound(defult path,1)

Abdelghani
0
Comment
Question by:ghuna388
3 Comments
 

Expert Comment

by:kangxy
ID: 2572319
Why not use MessageBeep function :)
The MessageBeep function plays a waveform sound. The waveform sound for each sound type is identified by an entry in the [sounds] section of the registry.

BOOL MessageBeep(

    UINT uType       // sound type  
   );

Remarks

After queuing the sound, the MessageBeep function returns control to the calling function and plays the sound asynchronously.
If it cannot play the specified alert sound, MessageBeep attempts to play the system default sound. If it cannot play the system default sound, the function produces a standard beep sound through the computer speaker.
The user can disable the warning beep by using the Control Panel Sound application.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2572788
Use Delphi's Beep procedure...
0
 
LVL 17

Accepted Solution

by:
inthe earned 20 total points
ID: 2573678
Hello
these sounds are already defined in mmsystem.pas so to use them just add mmsystem to uses section and use playsound functions:

  PlaySound(pChar('SYSTEMDEFAULT'),0,SND_SYNC);

PlaySound(pChar('SYSTEMSTART'),0,SND_SYNC);

  PlaySound(pChar('SYSTEMEXIT'),0,SND_SYNC);

  PlaySound(pChar('SYSTEMHAND'),0,SND_SYNC);

  PlaySound(pChar('SYSTEMASTERISK'),0,SND_SYNC);

  PlaySound(pChar('SYSTEMQUESTION'),0,SND_SYNC);

  PlaySound(pChar('SYSTEMEXCLAMATION'),0,SND_SYNC);

  PlaySound(pChar('SYSTEMWELCOME'),0,SND_SYNC);


Regards Barry
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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

760 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

19 Experts available now in Live!

Get 1:1 Help Now