Recording audio in C#

Comments

hi,

[this is good]

the article is very nice... but there is some problem with the source code u provided..

well im totally a newbie in this field..

so i needed it for better understanding.

Hi Mimi, what seems to be the problem?
i am unable to download it..it stops at 99% :(
I was able to download it (servers must of been down). Nevertheless, I reuploaded it here.
[this is good]

hi,this is usefull ,just i have problem with finding 3 reftrence that u told , i mean i can't find Bass.dll , bassenc.dll and lame.exe , i will so glad if u can help me because i nedd it so much for our project ( i want to record sound with mp3 format in c# )

thanks a million

Not at all. It looks like LAME was moved to the official site now, go here and download the latest version. In the zip you should find lame.exe.

You can download bass.dll by going here and clicking on the download link at the top for Windows.

Lastly, on this page you should see that the sixth add-on is Bassenc. Click the Windows download link there. Hope this helps :)
how this codes can save a record?
Hey, this is a really good tutorial however I'm confused. Inside your Initalize method you are using the BASSRecord.BASS_RECORD_PAUSE attribute. Can you tell me where you have defined the BASSRecord object. Have you included the class inside a namespace?

Thanks Again
[this is good]
i have successful execute ur programe. i want to stream the data to network so i want to get bytes form method

public bool MyRecording(int handle, IntPtr buffer, int length, int user)

in second parameter is the buffer of the sound so how to convert intprt to bytes



Hi Abdul, check out my article on Voice Chat in C#. I think it explains exactly what you're trying to accomplish.
[this is good]
Thank you very match!!! :)

Hello, thanks for the nice lesson. This is a helpful tutorial. I’m new to C# and recording audio. I hope me question don’t bother you. If I want to extend this tutorial to deal with multiple microphones, what are things that I have to do? I believe I have to initialize all devices in constructor “RecordUtil”. If I want to record all the input from different microphone into one file, how can I do that? And if I want to save then in different file is that possible. if you can guide me to a tutorial or your advice I will appreciate it. Thank you.

[this is good]
Thanks a lot for this useful lesson but lame.exe have a splsh (picture) at first run
Is there anther way using this exe


Thanks million
[this is good]
Thank you very much. Help me. How to record from mic to wav file.
[this is good]

Hi Thomas. I'm trying to sort of do the opposite of this tutorial in that I want to

automate the sending of stored audio to the capture device as opposed to using a sound source external to the computer as audio input. Do you know of any way to accomplish this using the Bass.NET api?
Hello Thomas,
Thanks to you for this nice article. It seems very helpful.
However some
Hello Thomas,
Thanks to you for this nice article. It seems very helpful.
However some problems occur because of the version differences I guess. I have 2 errors
1st one is about System.IntPtr casting. In the initialize function the last parameter "0" gives error since its type is int. So I cast it like "(System.IntPtr) 0"
2nd one is about Start functions argument list. In your code, it gets 2 parameters however it needs 3. The last parameter is "bool paused" so I added "false" parameter.
Then I succesfully compiled, When I start recording and stop it creates a file in the size of 1 or 2 kbs. But I guess there is a mistake, I can't play that file in winamp. How can I test it ? Can you explain to use this program also.
Waiting for your answer.

Thank you
Tuna
[this is good]

Hello Thomas,

Thanks to you for this nice article. It seems very helpful.

I need your help. Suppose if i want to capture audio from

Head phone. what should i do?

I am very eagerly expecting your mail.

I am currently working on another article for capturing and displaying audio from different sources such as what you hear. The main purpose is for audio visualization but I can certainly post one up on how to use that to record it or save it off to a file or something...
[this is good]
Is there a way to remove the splash screen on the start of solution?
[this is good]
I'm kinda new to C#.The explanation is straight forward but them I'm facing a problem with adding the bass.dll,bassenc.dll and lame.exe -i see this message when i want to add them "a reference to bass.dll can not to added.Please make sure that the file is accessible and is a valid assembly or .COM component".However, i was able to add bass.net as a reference
The libraries, bass.dll, bassenc.dll and lame.exe are libraries that you add to the project as an existing item so that you can copy them to the output directory. Really you don't need them in the project, it's just so they automatically get copied to the output directory. The only reference you really need is the Bass.NET dll.
Thanks.I'll work on it and let u know wots up......i'm really greatful for ur quick response...keep up d good work
Thomas,good work there.thanks. Is it possible to save the audio in .wav format rather than MP3 formatt.I look to hearing from you soon

Post a comment

Already a Vox member? Sign in

Thomas Holloway

About Me

Thomas Holloway
United States
worry less, do more
Messaging:
Send

My Groups

Neighborhood

Explore friends, family, friends & family, or entire neighborhood.

Archives