This project is read-only.

Record WAV in a specific output format

Oct 20, 2015 at 6:23 PM

I'd like to ask for help with my application. I'm trying to use CSCore library to record an audio in a specific format: 44100 Hz, 16bps and mono (1 channel).
public AudioRecorder(MMDevice device, int sampleRate = 44100, int bits = 16)
            WaveFormat waveFormat = new WaveFormat(sampleRate, bits, 1, AudioEncoding.IeeeFloat);
            soundIn = new WasapiCapture(false, AudioClientShareMode.Shared, 100, waveFormat);
            soundIn.Device = device;


            soundIn.DataAvailable += SoundIn_DataAvailable;
            soundIn.Stopped += SoundIn_Stopped;

            memoryStream = new MemoryStream();
            waveWriter = new WaveWriter(memoryStream, waveFormat);
Is there any way how to specific output format of my recorded WAV file? Thanks for your help!
Nov 9, 2015 at 6:08 PM
I'm sorry, but cscore moved to the please, post your question on github. Codeplex is not longer in use.