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

Display and play back custom waveform

Feb 28, 2011 at 11:15 PM

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.

Coordinator
Mar 2, 2011 at 10:06 AM

have a look at this article: http://mark-dot-net.blogspot.com/2009/10/playback-of-sine-wave-in-naudio.html

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

Mark