-
Notifications
You must be signed in to change notification settings - Fork 315
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
Fix WASAPI shutdown crash #8
Conversation
Hi Marcus, I tested the WASAPI code and the updated sample rate support seems fine. However, while duplex operation is working, audio input only does not seem to work. I’m not sure I tested this before. There is a “record.cpp” program in the tests/ directory that you can use to try it. I compiled using MinGW. Let me know if you can try to debug it. Note a made an addition or two to the code on github so you should probably grab the latest version from there. —gary On Apr 18, 2014, at 10:08 AM, MarcusTomlinson notifications@github.com wrote:
|
Hmm, strange. I thought I has tested this too. Yeah sure, I'll have a look soon.
|
Hi Marcus, I did a little hunting for the problem and I localized it to line 5082:
The “callbackPushed” flag can never be true for an input-only stream. Thus, the user callback never gets called after the first call. That said, I still don’t fully understand all parts of the code and thus I’m not sure what the fix is. I tried removing the condition and always setting callbackPulled = false, but the result for audio input was not clean. Regards, —gary On Apr 24, 2014, at 10:10 AM, MarcusTomlinson notifications@github.com wrote:
|
No description provided.