Solved

Knowing when a sound file is played?

Posted on 2004-08-12
1
195 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 86

Accepted Solution

by:
Mike Tomlinson earned 50 total points
ID: 11790426
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 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