private void GetData(object sender, WaveInEventArgs e) { WaveWriter?.Write(e.Buffer, 0, e.BytesRecorded); WaveWriter?.Flush(); }