-
Notifications
You must be signed in to change notification settings - Fork 311
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 fails to open WaveRT devices with suggestedLatency=0 #761
Comments
Digging further, the PortAudio WDM-KS code is issuing a Now in theory this is supposed to work, according to the Microsoft docs linked above and the
Theoretically, according to the above, the driver should accept zero and then return the smallest buffer size it supports. It could be that there is an undocumented constraint that this parameter cannot be zero. |
This fixes an issue where Pa_OpenStream() would fail on WDM-KS WinRT devices if suggestedLatency is zero. Fixes PortAudio#761
Something is fishy here. You have written:
And later,
There's no way the code should be requesting zero buffer size if A second comment: if this is a workaround for |
I've created a separate issue regarding taking |
Thanks for finding this issue.
I'm not sure that follows from the doc. A buffer size of zero may just be an unreasonable or illegal value. |
This fixes an issue where Pa_OpenStream() would fail on WDM-KS WinRT devices if suggestedLatency is zero. Fixes PortAudio#761
This fixes an issue where Pa_OpenStream() would fail on WDM-KS WinRT devices if suggestedLatency is zero. Fixes PortAudio#761
This fixes an issue where Pa_OpenStream() would fail on WDM-KS WinRT devices if suggestedLatency is zero. Fixes PortAudio#761
This fixes an issue where Pa_OpenStream() would fail on WDM-KS WaveRT devices if suggestedLatency is zero. Fixes PortAudio#761
This fixes an issue where Pa_OpenStream() would fail on WDM-KS WaveRT devices if suggestedLatency is zero. Fixes PortAudio#761
This fixes an issue where Pa_OpenStream() would fail on WDM-KS WaveRT devices if suggestedLatency is zero. Fixes #761
Describe the bug
If the following conditions are true:
PaStreamParameters::suggestedLatency
is set to zero;Then
Pa_OpenStream()
will fail.To Reproduce
examples/paex_sine.c
:suggestedLatency
to zero.device
to the index of a WDM-KS device that happens to use WaveRT.Expected behavior
The example runs and plays sound for 5 seconds.
Actual behavior
Pa_OpenStream()
fails with the following debug output:Desktop:
Additional context
The text was updated successfully, but these errors were encountered: