This project has moved. For the latest updates, please go here.

Using NAudio for DSP

Jan 22, 2010 at 1:57 AM


I'm working on project which involves recording audio (whilst playing audio at the same time), and applying filters (using fft, FiR, etc.) on the recorded data.

I was wondering what the best way to go about doing this would be, given that I don't really want to write any sounds out to .wav files (in the early stages

at least, where the audio is originally recorded).  I don't think memory is an issue, and the 16-bit, 44.1khz mono sound being recorded will not be too long

(meaning i can afford to have the whole thing sitting in an array in memory if need be).  I can probably pick up the details from the sample applications and

the like, but the general way to go about doing this is a problem for me - and using WPF (which im new to) will take some time for me to learn.

Any help is appreciated,



Jan 22, 2010 at 9:45 AM

have a look at my Skype Voice Changer project which shows how to apply effects using NAudio. At the moment there is no example code of playing back what you are recording in realtime (mainly because the latency will be very poor with NAudio), but I am hoping that at some point in the future we will have some example code.