Solved

Playing Waves in App.

Posted on 1997-05-04
2
171 Views
Last Modified: 2010-04-06
I'm using "sndPlaySound('TAStartUp',SND_ASYNC);" to try to play a wave at the start of my D2 program (while the splash screen is showing).  If I put the definition of TAStartUp in the register under AppEvents\EventLabels, and AppEvents\Schemes\.default, then the sound plays.  But if I put it in a sub-key for the program (e.g., AppEvents\Schemes\Assistant), no sound is played!

What am I doing wrong?!?!  Could anyone offer suggestions?!?!
0
Comment
Question by:Raven1155
2 Comments
 
LVL 2

Accepted Solution

by:
alona041797 earned 75 total points
ID: 1335896
I think the program header should be equal to the your application's project name.
0
 

Author Comment

by:Raven1155
ID: 1335897
Alona,

Your answer does not fix the problem using "sndPlaySound", but it clears it right up when one uses "PlaySound" and follows your suggestion in the Registry.

Thanks!
 Jim 8^)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
How to define IfThen functions in one common unit? 4 60
Dev express lookupcombo 3 34
enhance the following code 3 37
Firemonkey allowing RTL on android 6 47
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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