Sound Recorder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Nikhil said:
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/cswavrec.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
 
Back
Top