By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,983 Members | 1,582 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,983 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Sep 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

Sep 5 '06 #2

P: n/a

<Si*********@yahoo.co.ukwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
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
Sep 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.