-
Notifications
You must be signed in to change notification settings - Fork 312
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
wasapi: Workaround for the Realtek driver "Mono" bug #934
wasapi: Workaround for the Realtek driver "Mono" bug #934
Conversation
Confirming, this fixes the issue with the buggy? Realtek driver. |
@arkadijs thank you very much for testing. Now let's wait for a review from @RossBencina and @philburk to get this PR approved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not tested it, but it looks OK. my main concern would be whether this could introduce a regression on other drivers. is it passing the PortAudio pa_loopback
tests?
82a2d35
to
ca10cd9
Compare
Great that you mentioned it! I modified workaround to exclude Input mode as this driver bug is related to Output only. As to I propose to discuss the timeout of [Loopback] WASAPI device in #935, there we can also discuss whether a workaround needed in This PR looks ok for me to commit. |
ca10cd9
to
7030e30
Compare
There is one problem with the latest version though: Removing
|
Another issue: callback API works perfectly but sync |
…accepts Mono format with IAudioClient_IsFormatSupported() while subsequently fails in IAudioClient_Initialize() (issue PortAudio#875).
7030e30
to
303d208
Compare
@arkadijs thank you very much for testing again, that was typo on my side. I modified that check to !output to limit the case only to capturing devices: if (!output && isSharedMode && (params.channelCount == 1) && (sharedClosestMatch == NULL) &&
(deviceInfo->MixFormat.Format.nChannels > 1)) Would you please double check if it still works well for you to double confirm.
I managed to reproduce it by modifying |
Tested latest version with Opened #945. |
Great! Lets wait for @RossBencina to resolve his question. |
I'll merge this once CI passes |
GHA had issues yesterday, |
@RossBencina I merged it for you, if you do not mind, so we could go forward with other fixes. |
Workaround for the Realtek driver bug when driver mistakenly accepts Mono format with
IAudioClient_IsFormatSupported()
while subsequently fails inIAudioClient_Initialize()
.It is a long-lasting issue #875 which was resolved with a kind debugging help by @arkadijs.
Closes #875.