I am writing a a rangefinder program at the moment (think sonar). So I fire a pulse of sound and measure how long it takes to come back. Currently, I am simply opening up the sound file and manually measuring the time to rise. I have linked an image for clarity.
I'm wondering if there are any .NET libraries to do this sort of thing. I have already looked at NAudio but didn't find anything useful.
It looks like I might have to do this manually, in which case, how do I best go about converting a WAV into a series of raw values (such as each point on the image)? If I can do that I can write my own algorithm.