Solved

Knowing when a sound file is played?

Posted on 2004-08-12
1
186 Views
Last Modified: 2010-04-23
Hi all.  I have a program that plays a sound file occasionally.  I know where the sound file is, and what I'm wondering is if there is anyway for my .Net program to know when the file is played so it can do some actions.  I tried filesystemwatcher for last accesed and a couple others, but it doesn't seem to access the file everytime it is played.  So, is there a way to know when the file gets played?

Also, a side question.  I'm fairly new here, and I was just wondering what these points are and how they work?
0
Comment
Question by:NemoNiente
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 50 total points
Comment Utility
If the sound file is small, the application is probably loading and storing it in memory upon startup.  The file is then played directly from memory whenever it is needed.  Playing files from memory prevent file access delays that may occur if the file is played from the hard drive each time it is requested.

If this is the case, there is no way to tell each time the file is played.

The points you assign to a question will be awarded to the person(s) you deem to have answered your question correctly.  The point value will be multiplied by 4 for a grade of A, by 3 for a grade of B, and by 2 for a grade of C.  So a person who singlehandledly answers a 500 point question with a grade of A will receive 2000 points.  This is supposed to be the maximum for any question.

These points go towards an Expert earning certifications in each topic area.  The first certification level is Master at 50,000 points in a topic area.

Your point totals can also qualify you for Premium Services which give you Unlimited Questions and the ability to Search EE.  To get free Premium Services you must first accumulate a total of 10,000 points and then at least 3,000 points each month to keep them.

You can find this information and a whole lot more at:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/help.jsp

Idle_Mind
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

16 Experts available now in Live!

Get 1:1 Help Now