sound capture (record audio input) in VB.NET????

  • Thread starter positivebalance41m
  • Start date
P

positivebalance41m

I have been searching how to do sound capture (record audio input) in
VB.NET for days now.

I find some references to "winmm.dll" calls, but they give VB5 or VB6
examples which won't code convert upgrade to VB.NET without warnings
errors that I can understand how to fix.

There's some ActiveX and OCX's floating around, some free some not, but
in all cases they don't explain or give me access to the raw PCM data
in some kind of familiar object like a string or array.

DirectSound gives methods but code samples are all in C++ or C#. I'm
not fluent enough with C++ lang to make C++ ---> VB conversions in my
head. The DirectX DDK seems to be written for people that use C++, I
find little in the way of practical VB.NET examples from Microsoft.

I understand the idea of a buffer for storage of record/play audio but
I really need a functional code sample or snippet demonstrating audio
from a microphone being displayed on an oscilloscope type of graph, and
how to number crunch to the raw audio data to do standard things like
FFT, frequency shape, and audio effects. The math involved I already
understand; but its the setting up of import directsound's
capabilities and to see an actual working code sample on a form showing
how to set up buffer(s), start stop sound capture, and read/interpret
raw audio data (number representation) of the sample stream.

Keep in mind I'm a hardware engineer that has dabbled in Basic over the
years, and more recently VB.NET, so I have gaps in knowledge or
understanding of some programming conventions. However I find I often
can modify a working example and build upon it to accomplish end goals.

Pointers or postings of any working code sample in VB.NET for sound
capture and display greatly appreciated.

~Terry
 
S

Sirhcyarguk

I've noticed a lot of people prefer VB6 to .NET, I can't answer your
question but there are plenty of people who can do all of this in VB6
I've seen.
 
M

Mythran

I've noticed a lot of people prefer VB6 to .NET, I can't answer your
question but there are plenty of people who can do all of this in VB6
I've seen.

Really? People "prefer" VB6? Yuck, I can't stand VB6 lol...

In any case, one way to capture sound from an input device would be to use
DirectX (DirectSound or DirectInput) :)

HTH,
Mythran
 

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

Top