Record WAV in a specific output format

Oct 20, 2015 at 5:23 PM
Hello,

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.Initialize();

            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!
Coordinator
Nov 9, 2015 at 5:08 PM
I'm sorry, but cscore moved to the https://github.com/filoe/cscore please, post your question on github. Codeplex is not longer in use.