Play system predefined sounds  

Send By: Q3 Team
Web : http://www.q3.nu
Email: dlib@q3.nu
Date: 17/07/99

Tip accessed 601 times

 


Add 'MMSystem' in the uses of your form

And execute this code:


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



Instead of SND_ASYNC, you can put SND_SYNC. The difference is if you want that the program wait to finish the play or not.

Other sound constants:


     SYSTEMSTART
     SYSTEMEXIT
     SYSTEMHAND
     SYSTEMASTERISK
     SYSTEMQUESTION
     SYSTEMEXCLAMATION
     SYSTEMWELCOME
     SYSTEMDEFAULT