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

WAV read/write question

Sep 8, 2011 at 12:22 PM

Is it possible to be recording from a sound card, and at the same time streaming that same .wav file, without having the full .WAV? Or in another words,  while recording a wav file (which might be as long as 2h) into disk, is it possible  to stream it while it is not complete??

I am a complete newbie on this. Not just in NAudio, but in audio processing/recording. Just getting familiar with WAV file format....but I am sure that you already knew it! 

Cheers!


 

Coordinator
Sep 14, 2011 at 3:54 PM

It's not easy to do since a WAV file is not strictly valid until it has completed writing. However, I have done this myself as part of a commercial project. You can make a basic custom WaveFileReader that doesn't care about the length of the data chunk.