Пример #1
0
 static void OnDataAvailable(object sender, WaveInEventArgs e)
 {
     bwp.AddSamples(e.Buffer, 0, e.BytesRecorded);
 }
Пример #2
0
 /*
  * Callback that accepts new audio samples from WASAPI.
  */
 protected void OnDataAvailable(object sender, WaveInEventArgs e)
 {
     WaveProvider.AddSamples(e.Buffer, 0, e.BytesRecorded);
 }