   [SlimDX] Using the microphone
  Hi,I've been trying to acquire pcm data from the microphone using SlimDX but I'm getting an exception everytime I try to create a capturebuffer. I'm trying something like the following code:DSound.DirectSoundCapture capture = new DSound.DirectSoundCapture();capture.IsDefaultPool = false;WaveFormat format = new WaveFormat();format.FormatTag = SlimDX.WaveFormatTag.IeeeFloat;format.SamplesPerSecond = 44100;format.BitsPerSample = 32;format.Channels = 1;format.BlockAlignment = (short)( format.Channels * ( format.BitsPerSample / 8 ) );format.AverageBytesPerSecond = format.SamplesPerSecond * format.BlockAlignment;DSound.CaptureBufferDescription bdesc = new DSound.CaptureBufferDescription();bdesc.BufferBytes = 2048;bdesc.ControlEffects = false;bdesc.Format = format;DSound.CaptureBuffer buffer = new DSound.CaptureBuffer(capture,bdesc);But it raises an exception in the last line. What could be wrong?edit:I've ended up finding a working example here, if anyone else is interested:- http://crsouza.blogspot.com/2009/08/capturing-sound-from-microphone-using.html[Edited by - csza on August 7, 2009 8:01:10 PM]