-
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
WDM-KS: don't request a zero buffer size #762
Conversation
If this is a workaround for I've made other comments at #761, we should try to keep the bulk of the discussion there. |
My reasoning for doing it that way is that (1) in general it feels safer to have |
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.
Looks fine except for long lines.
@dechamps I'm not completely persuaded by your reasoning because I think my solution guarantees that 0 will not ever be passed to KSRTAUDIO_BUFFER_PROPERTY/RequestedBufferSize whereas your solution relies on maintaining an undocumented invariant "at a distance". Could we at least add a comment in the code directly prior to where KSRTAUDIO_BUFFER_PROPERTY/RequestedBufferSize is set noting that passing 0 will fail with WinRT devices (do you mean WAVERT? not WinRT?) and linking to #761 Other possible solutions would be:
In the end I'm not going to die on this hill but I'm not entirely comfortable with the patch as it stands. |
ea18548
to
1adff7b
Compare
Done.
Oh wow, good catch. I don't know why I wrote WinRT literally everywhere including in my original bug report, what a brain glitch… fixed in all places. |
The two failing checks are not caused by this PR. Filed #767 to fix the checks. |
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.
Thankyou!
This fixes an issue where Pa_OpenStream() would fail on WDM-KS WaveRT devices if suggestedLatency is zero. Fixes PortAudio#761
I guess this can be merged now? |
This fixes an issue where Pa_OpenStream() would fail on WDM-KS WaveRT devices if suggestedLatency is zero.
Fixes #761