473,414 Members | 1,781 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,414 software developers and data experts.

Sound Recorder

I have to make an mp3 sound recorder to record through mike. So, I plan to
use lame as mp3 encoder which is written in C. I am unable to import its dll
in C# project as a reference because it says that the dll formed is not a
valid managed dll. So, I compiled the project as a static library (.lib) and
used it in a cpp project. I was able to use it successfully this way.
Secondly, I was also unable to find any sound recording library in C#. First.
please tell me the library(if any) for sound recording in C# and secondly, is
there any way I can use this C Application in that C# project.

Nov 16 '05 #1
1 15841
Nikhil Aggarwal wrote:
I have to make an mp3 sound recorder to record through mike. So, I plan to
use lame as mp3 encoder which is written in C. I am unable to import its dll
in C# project as a reference because it says that the dll formed is not a
valid managed dll. So, I compiled the project as a static library (.lib) and
used it in a cpp project. I was able to use it successfully this way.
Secondly, I was also unable to find any sound recording library in C#. First.
please tell me the library(if any) for sound recording in C# and secondly, is
there any way I can use this C Application in that C# project.


That's what i'm developing right now - sound recording with wav-to-mp3 conversion.

For recording i use Windows Multimedia API, which is the easies way.
There is a full-featured example on codeproject.com, which i used as a start:

http://www.codeproject.com/cs/media/...asp?print=true

It shows how to implement a wav player/recorder in c# using p/invoke of winmm.dll
And i'm positive it will work for you
If you would have any questions regarding use of that example, don't hesitate to ask me

Good luck,
Andrey
Nov 16 '05 #2

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

Similar topics

2
by: Josh | last post by:
I am having a problem with sound in my program, it takes information from a TargetDataLine, put's it in a temporary file, then takes it back out of the temporary file and plays it using a...
0
by: ajac | last post by:
In the windows xp system the sound recording system give us only 1 minute of recording time. I would like to get the "recording time Length " to the maximum. please let me know Urgently. ...
6
by: MLH | last post by:
I've followed the instructions found on Microsoft's site... http://support.microsoft.com/default.aspx?scid=kb;en-us;149119&Product=acc97 Here are those instructions... To play and record...
2
by: Ehsan Sadeghi | last post by:
Hello can someone tell me how to save sound files and how to use them in a program.
1
by: Jon Lehrer | last post by:
Hoping for some advice: I would like to write some code that controls the "window's sound recorder" that I embedded in my program with OLE. I can do this with Excel...
5
by: Mad Scientist Jr | last post by:
I'm trying to record a voice memo on a Pocket PC (2000) from VB.NET (smart device application from vs.net 2003). Tom Shelton did an initial conversion to VB.NET which I am trying to run, but am...
0
by: Emma Gumbdough | last post by:
Okay we have here a VB.NET version of the .net compact framework voice recorder sample that uses open net CF c# version at: http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=79 THIS CODE...
2
by: Dave A | last post by:
Hi, I need to write a small WinForms application to record some sound in WAV and then integrate with another online application. I cannot find either a MS component or 3rd party component that...
0
by: Alex | last post by:
I would like to control the Windows Sound Recorder from Access VBA code. I have found the sample code from the Microsoft website for the default recorder (see below), but I could not find a way to...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.