how to eliminate latency and echo from the direct-monitoring using AsioOut (NAudio)
问题 Based on this question made by me: How to record and playback with NAudio using AsioOut With this code: [DllImport("Kernel32.dll", EntryPoint = "RtlMoveMemory", SetLastError = false)] private static unsafe extern void MoveMemory(IntPtr dest, IntPtr src, int size); private void OnAudioAvailable(object sender, AsioAudioAvailableEventArgs e) { for (int i = 0; i < e.InputBuffers.Length; i++) { MoveMemory(e.OutputBuffers[i], e.InputBuffers[i], e.SamplesPerBuffer * e.InputBuffers.Length); } e