Recording using DirectSound
God, it's so hard to find some decent documentation on DirectX...
My problem is that I want to capture waveforms using Capture class:
//code snippet
CaptureDevicesCollection cdc=new CaptureDevicesCollection();
Capture capt=new Capture(cdc[0].DriverGuid);
CaptureBufferDescription cbd=new CaptureBufferDescription();
cbd.WaveMapped=true;
cbd.ControlEffects=true;
CaptureBuffer cb=new CaptureBuffer(cbd,capt);
//end snippet
The program compiles alright, yet when executing the above code it raises a System.ArgumentException with the "Value does not fall within the expected range." message. Why?