Adding Sound file to C# Application

  • Thread starter Thread starter sravan_reddy001
  • Start date Start date
S

sravan_reddy001

i want a sound to be generated when and event occurs.
especially when a message box is displayed and when an user want to
close a form(i want to include this in the form closing event)
thanks...

Sravan
 
i want a sound to be generated when and event occurs.
especially when a message box is displayed and when an user want to
close a form(i want to include this in the form closing event)
thanks...

The link posted by the first responder appears to only play WAV files.
If you want to play an MP3 clip just just a MediaPlayer control.
 
The link posted by the first responder appears to only play WAV files.
If you want to play an MP3 clip just just a MediaPlayer control.

Can I add that any application that insists on playing sounds when I
don't want them to is either uninstalled or sworn at repeatedly until
I find a viable alternative. Angry emails to the author are often
included for free.

Either add an entry to the Sounds section in Control panel, or at the
very minimum, out of respect for your users, add something in your
preferences to turn it off.
 
Let's note I only have cursory information available in this response which
I have an interest in so I'll start by saying "yea," I agree with DeveloperX
but add it goes without saying that a well designed application would enable
the user to activate or deactivate sound at will.

Now, I always thought the Windows OS natively supported playback of sound
such as MIDI tones but I haven't been able to determine the facts in this
regard. There certainly doesn't seem to be a library in the DNF which
supports audio I/O for tonal values as simplistic as a MIDI tone which for
some applications is all that is needed.

As for the playback of any other audio file formats I think it is correct
that DirectX or some other library meant for multimedia must be present and
may be accessed for its support of playing file types such as MP3. The
limiting factor has been downloading the files I think.

Tell me though, if it were available, would you as a developer have any
interest in buying a .wav file sound library? It would be a large
download -- but -- the user would only need to download the library once and
any and all applications could then access the sound which would be for
example a collection of common words and phrases.

Like a numerical library that "speaks" the words one, two, three,
one-quarter, one-half, three-quarters and so on.

What is your opinion: would this be commercially viable?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top