Netwok stream of loopback recording

Apr 14, 2013 at 2:03 PM
hi am trying to stream the WasapiLoopbackCapture ..
but the proble is that the WasapiLoopbackCapture writes a wav file of 32bits per sample wich VLC netwok stream reader cannot read .
 waveIn  = new WasapiLoopbackCapture();
waveIn.DataAvailable += OnDataAvailable;
  waveIn.StartRecording();
 void OnDataAvailable(object sender, WaveInEventArgs e)
        {
 m_MulticastSender.SendBytes(ToRTPPacket(e.Buffer,waveIn.WaveFormat.BitsPerSample,waveIn.WaveFormat.Channels).ToBytes());
}
Coordinator
Apr 15, 2013 at 1:05 PM
convert it to 16 bit before you send it. Is it 32 bit int or 32 bit float you are capturing. The helper methods on the BitConverter will help you make the conversion,.
Apr 15, 2013 at 3:39 PM
yes ... but how to convert it ?
Coordinator
Apr 18, 2013 at 4:06 PM
hi, this article will help you understand about converting different bit depths

http://www.codeproject.com/Articles/501521/How-to-convert-between-most-audio-formats-in-NET