Re: what to use to play sound?
- From: Scott H <x@xxxxx>
- Date: Sun, 05 Feb 2006 12:40:38 GMT
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
p.s. It needs to use the sound card, not the internal speaker.
On Wed, 25 Jan 2006 22:38:53 +0100, "Herfried K. Wagner [MVP]"
"djc" <noone@xxxxxxxxxxx> schrieb:.
what choices do I have to play sounds in a program using vb.net? Or, I
if nothing vb specific what windows API(s) should I look at? I am
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/>.
- Prev by Date: Re: Calling Program A from Program B
- Next by Date: Re: Problem to write a good serie of bytes in a file.
- Previous by thread: Combobox in VB2005
- Next by thread: Class as an array