Solved

Knowing when a sound file is played?

Posted on 2004-08-12
1
194 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
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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
VB.NET Repostiory Pattern 7 49
Crystal reports vb.net 2 54
vb.net winforms sizing/resolution? 4 40
Vb.net threads keep increasing 2 35
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

789 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