Sign in to follow this  

capture audio signal

This topic is 3863 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I need to make a Spectrum Analyzer, for that I want to capture the frequency of an audio signal entering the sound card... how can I do this in c#? any libs out there that can give me a hand? Thanks

Share this post


Link to post
Share on other sites
FMod supports .Net so you could use that. It's really an API designed for doing sound in games however it's pretty easy to use and you can easily set it up to record from line in/mic and capture all the sample data for whatever use you want.

Share this post


Link to post
Share on other sites
DirectSound also offers audio capture via its DirectSoundCaptureBuffer interface. Depending on your ultimate goals, I'd say it's a toss-up between DirectSound and FMOD. FMOD is the nicer of the two libraries, but DirectSound is that little bit more scalable.

Anyway, far more of a concern is finding a good FFT library. I've looked high and low for one that I'm happy with, but have come up empty-handed. Let us know if your search is any different.

Admiral

Share this post


Link to post
Share on other sites
I am currently using FMOD (with C++) myself for pitch detection and it is quite easy. The API has an example of how to do pitch detection and it seems to work fine.
Good luck!

Share this post


Link to post
Share on other sites

This topic is 3863 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this