(no title) (original) (raw)

I've got a rookie question: how do you make Win32 calls from C#?

My experience has been mostly with C and Java, and I'm just starting to learn C#... This little thing I'm working on is supposed to be able to capture the input audio signal and read audio files in multiple formats and analyze audio data. It's pretty clear to me how to do this in Java -- there you just use AudioSystem, AudioInputStream, AudioFileReader or something like that. All of this is pretty well documented. I decided to migrate my project from Java to C# and continue developing in .NET and learn it in the process...

But where do I start? The core libraries don't seem to have anything to do with audio... Should I play with DirectX? Should I use Win32 and, if so, how do you do it? This is the only reference I found so far:

http://www.codeproject.com/csharp/c__and_api.asp

Are there any better resources?

Thanks in advance...