I have this functions:
public WaveIn(WaveCallbackInfo callbackInfo)
{
this.DeviceNumber = 0;
this.WaveFormat = new WaveFormat(8000, 16, 1);
this.BufferMilliseconds = 100;
this.NumberOfBuffers = 3;
this.callback = new WaveInterop.WaveCallback(Callback);
this.callbackInfo = callbackInfo;
callbackInfo.Connect(this.callback);
}
How do I call it?
WaveIn(callbackInfo: ????);
And I whant to change for example this parameters in here:
this.WaveFormat = new WaveFormat(8000, 16, 1);
If I can’t change those parameters in callback can I override it?
Thank you
I recommend you ignore that constructor and call the default one
if you want to specify a different recording WaveFormat, just set the WaveFormat property (before you start recording)