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

Wasapi Loopback Non-Audio Data

Jun 3, 2014 at 2:51 PM
Hi,

I'm using Naudio's WasapiLoopbackCapture to record the output from my sound card.

I'm passing the stream from Wasapi to a WaveInProvider object and then with WaveFloatTo16Provider I convert the 32-bit float of Wasapi to 16-bit audio.

I have tested the process by saving the data stream to a .wav file with WaveFileWriter and it sounds perfect!!

My question is: The data that Wasapi puts on the stream are pure audio or there are non-audio data like these -> http://en.wikipedia.org/wiki/WAV#Non-audio_data ?

I'm sending these data via UDP packets to an FPGA but when I play the stream with the AC97 codec, I get a clipping sound and I cant track down the source of it. So my last guess is that Wasapi also sends these non-audio data that I'm trying to play when I shouldn't, resulting to the clipping sound.

Any thoughts?
Thank you in advance, Alex
Coordinator
Jun 29, 2014 at 10:47 PM
No, you will only get 32 bit floating point audio samples from WasapiLoopbackCapture