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

Display and play back custom waveform

Mar 1, 2011 at 12:15 AM

I have data that was recorded from an accelerometer, and I'd like to play that back using NAudio. I'm still trying to figure out the basics and so am having a bit of trouble figuring out where I need to be looking. Does anyone have any suggestions of where to start? I have an array of floats which are the accelerometer values over time at about 20Khz, and I'd like to convert it to an audio waveform the user can listen to. Thanks.

Mar 2, 2011 at 11:06 AM

have a look at this article:

you would replace the sine wave generation code with returning values from your array of floats