Using both Delphi 1 and Delphi 2, I want to associate a sound to a click on a button. I am stuck on my code, and since I never used sound before I am unfamiliar with that area.
Here is the scenario:
Sound file is called click.wav and is stored in directory f:/dmtb (the program directory)
I want to either use the wav file as part of my resources or have it load from file from the program directory. THe sound would be played when certain buttons in the program are played.
My current code is in error. What happens is the sound I have in the background will not clear so the wav file can be played.