what to use to play sound?

  • Thread starter Thread starter djc
  • Start date Start date
D

djc

what choices do I have to play sounds in a program using vb.net? Or, I guess
if nothing vb specific what windows API(s) should I look at? I am interested
to find out whats needed for playing short wav files for sound effects as
well as playing longer sound clips in mp3 format.

can anyone point me in the right direction?
 
wat i usually do is use the windows media player COM object....works great 4
me...just add iit 2 ur toolbox
 
djc said:
what choices do I have to play sounds in a program using vb.net? Or, I
guess
if nothing vb specific what windows API(s) should I look at? I am
interested
to find out whats needed for playing short wav files for sound effects as
well as playing longer sound clips in mp3 format.

..NET 2.0 contains a 'SoundPlayer' class which can be used to play wave
files. For MP3 files consider using the Multimedia class available in
"Useful Classes" at <URL:http://www.mentalis.org/>.
 
I have a similar sort of question, so thought I'd tag it on here...
I want to generate audio rather than playing a wav or mp3, I've had a
look at the new SoundPlayer Class, but it doesn't seem like its what I
need, basically, to get me started I need a way of generating a 50Hz
Tone using the default sound card.

The only way I've thought of so far is to create the WAV in code, then
get the soundplayer to play it, but I'd rather do it properly, I'd
need it to be interactive and respond quickly to changes on the GUI

Anyone help?

Scott

p.s. It needs to use the sound card, not the internal speaker.
 

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