473,395 Members | 1,422 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Audio recording in C# ... how?

Hi

I would like to record audio from my mixer source (microphone,
line-in, midi...) to wave (PCM) format (filename is known) ... that's
all. I've been looking for a really long time now on the internet, The
Code Project, forums ... everywhere, the only thing I can find is how
to play audio files and some XML stuff. It's the first time I have to
create a C# audio program, so ... ;)

Thanks to anyone who can tell me how to do this

Nov 17 '05 #1
2 52927
"Meng Zhuo" <cy***@dr.com> wrote in message
news:vf********************************@4ax.com...
Hi

I would like to record audio from my mixer source (microphone,
line-in, midi...) to wave (PCM) format (filename is known) ... that's
all. I've been looking for a really long time now on the internet, The
Code Project, forums ... everywhere, the only thing I can find is how
to play audio files and some XML stuff. It's the first time I have to
create a C# audio program, so ... ;)

Thanks to anyone who can tell me how to do this


You need to use DirectX, specifically DirectShow I believe. It's quite
complicated to get DirectShow up and running in C# but once you do it would
be fairly easy to achieve what you want. First, download and install the
DirectX 9 SDK and then have a look at these samples:

http://www.codeproject.com/cs/media/directshownet.asp

https://sourceforge.net/projects/directshownet/

Also have a look at the samples in the DirectX SDK as well as the help file
provided with it. There is a direct show book provided by microsoft that is
excellent which I got second hand off amazon for $12.

Michael
Nov 17 '05 #2
Meng,

You obviously didn't check out the Code Project well enough. Here is a
link to an article with code:

http://www.codeproject.com/cs/media/cswavrec.asp

There are other coding examples for recording found at the Code
Project. In fact, I used code from this source to create an application
that lets me record from sound cards.

By the way, you don't need DirectShow. Either DirectSound or the
WaveIn/WaveOut APIs will suffice.

Best Regards
Johann Blake

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Sugapablo | last post by:
I had an idea for something that I can't find any evidence if it exists, or if it can be done. I assume it can be done. What I'd like to be able to do, is to allow people who come to my website,...
1
by: Noah | last post by:
I need to record raw 8-bit mono audio from a generic sound card on MS-Windows. I need to do something like this: sound_device = open audio device buffer = sound_device.read ('1 second, 8 bit,...
7
by: psk | last post by:
Hi, I need to read live audio from microphone and somehow make data packets from it and send using my client-server implementation where it will be played. Can anyone tell me abt any...
5
by: ACaunter | last post by:
Hi all, I am in desperate need of being able to have the users of my asp.net site to be able to make a recording from their computer mic, and save that audio on my server.. the user should be able...
1
by: ACaunter | last post by:
Hi all, Have been getting no luck lately, but there must be a way i can recording audio from the website and save it.. It's no problem on applications (VB.Net), and I know other have done it...
1
by: zhangzhi | last post by:
HI£º i have a big problem about audio recording. my boss wanna a application of audio monitor, and he wanna it will detect voice and start recording automatically, avoiding recording silences....
0
by: universe | last post by:
I am developing a web application in that I need to record audio, for that I am importing "winmm.dll" and using mciExecute function.(the following code is vb.net). If I have posted in irrelavent...
2
by: tiffxi | last post by:
I'm an ASP.NET newbie. I'm trying to write an audio-recording code in an ASP.Net page. I created a windows User Control that has the buttons and codes for this (it calls the winmm.dll in system32...
1
by: fevos | last post by:
hi i look at this article in msdn Recording and Playing Sound with the Waveform Audio Interface and download the P/Invoke Library Sample that record using wave in and wave out . how do i get...
1
by: waqasahmed996 | last post by:
Hi to all, i want to ask that is audio recording is possible in flash. actually i want to make recording from browser. is that possible in flash. if yes please give me some help or send me some...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.