-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WaveInEvent does not record audio in .Net 5 #791
Comments
Why are you clearing the As for why you're not getting any data, are you sure the default input device is setup correctly? i.e is the default set to your microphone. Alternatively you can manually select the audio device using the |
Yes, I'm sure, because if you put a breakpoint, then I will never come to WaveIn_DataAvailable. As for the default input device - this code was written in .Net 5 and .Net framework in one solution and was run sequentially. The result is that the framework works, Core 5 does not. |
Hmm, very possibly related to #789 or some unknown bug caused by the 5.0.7 patch. One other thing to try is to enlarge BufferMilliseconds to something a bit bigger, maybe the buffer isn't large enough to store the data recorded (honestly that's just a total guess but may be worth checking). |
I tryid, but it not work |
Would you mind trying with the new 2.0.1 (NuGet) patch please. |
Work, thanks. |
o/
I wrote the following code:
This code works on the .Net Framework, but does not work on .Net 5. WaveInEvent does not write (its buffers are empty) and does not generate an event about data availability for reading, respectively. :C
The text was updated successfully, but these errors were encountered: