Solved

Knowing when a sound file is played?

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 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