0
Answer

Recording using DirectSound

Ask a question
alobiuc

alobiuc

19y
5.6k
1
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?