This project has moved and is read-only. For the latest updates, please go here.

WaveIn + _DataAvailable + WaveMixerStream32

Nov 4, 2012 at 11:49 PM

So I have void waveInStream_DataAvailable(object sender, WaveInEventArgs e)

How do I deal with e.Buffer to create an object that WaveMixerStream32 can add with AddInputStream?

Nov 6, 2012 at 11:21 AM

Use BufferedWaveProvider for this. I'd recommend using MixingSampleProvider if possible instead. WaveMixerStream32 is awkward to work with.

Nov 6, 2012 at 3:27 PM
Edited Nov 6, 2012 at 3:35 PM

How to marry MixingSampleProvider with args.Buffer from  void OnMicServerExecute(object sender, DataReceivedEventArgs args)

ie: How to convert args.buffer byte[] to float[] for MixingSampleProvider.Read?

Nov 8, 2012 at 8:47 PM

use a Pcm16BitToSampleProvider to turn your BufferedWaveProvider into a SampleProvider

Nov 9, 2012 at 12:55 AM

I don't see the question to your answer.