I would to do the following sequence:
WaveIn
into memory.I know how to record using WaveIn
and how to use WaveFileReader
and WaveFileWriter
. But there are other classes that are needed here which I don't know how to use.
WaveIn
to a MemoryStream
MemoryStream.Position
to 0. Then pass that into a RawSourceWaveStream
using the WaveFormat
of your WaveIn
ToSampleProvider
on the RawSourceWaveStream
to go to IEEE 32 bitWaveFileWriter
If you implement your DSP as a custom ISampleProvider
you can simplify your pipeline even more, and use WaveFileWriter.CreateWaveFile
to automatically pull all the data through from the MemoryStream
into your WAV file