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

Saving MixingSampleProvider output to wav file?

Nov 11, 2013 at 3:49 AM
I'm trying to figure out the best way to save the output of MixingSampleProvider as a wave file? CreateWaveFile16(string filename, ISampleProvider sourceProvider) includes a warning about not writing from indefinite sources. Is there another preferred way to record live audio through a mixer?
Coordinator
Nov 11, 2013 at 8:58 AM
you don't have to use the static methods on WaveFileWriter. Create a WaveFileWriter, and write blocks of samples to it using WriteSamples. Then when you've finished writing, dispose the WaveFileWriter