Solved

Get defualt path of wave file

Posted on 2000-03-01
3
154 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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
Multiple image collision 13 80
SUM 2 INTEGER ARRAYS INTO 1 10 108
Delphi Seattle StructureView color 1 14
Delphi android app hide keyboard 3 17
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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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