//, ManualResetEventSlim mEvent public static int SoundCardInit(uint nSamplerate) { if ((nSamplerate != 8000) && (nSamplerate != 16000)) { return(-1); } SoundCardCallback = new DelegateSoundCardCallBack(pSoundCardCallBack); mEvent = new ManualResetEventSlim(false); return(_SoundCardInit(nSamplerate, SoundCardCallback, 0)); }
//int __stdcall WaveStart(unsigned int uSamplerate, WaveCallBack pCallBack); private static extern int _SoundCardInit(UInt32 nSamplerate, DelegateSoundCardCallBack pCallBack, UInt32 flag);