NAudio Record buffer full after 5 seconds of recording

前端 未结 1 842
我寻月下人不归
我寻月下人不归 2020-12-21 20:18

I\'m making a program using Visual C# Studio that records from a microphone.

I wish to record for a few minutes, but when I try to record, it shows me an error wit

相关标签:
1条回答
  • 2020-12-21 21:08

    There's a bunch of code in there you don't need. Get rid of creating the empty WAV file. Also, there is no need for the WaveInProvider. In fact, that is what is causing the buffer full exception, since nothing is reading from it.

    0 讨论(0)
提交回复
热议问题