-
Notifications
You must be signed in to change notification settings - Fork 369
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
Unable to change BufferSize on Windows. #544
Comments
Hello CaseyB, I assume that you try to use WASAPI on Windows ? Right now, you can't choose the buffer size with this host, it's not implemented. By default, cpal try to get the smalest possible buffer. There is already on issue for that (#534). But you have to know that with WASAPI, you can't really choose the buffer size. You can ask for a buffer size and WASPI will try to give it to you but you have no warranty. you can check here : https://docs.microsoft.com/en-us/windows/win32/api/audioclient/nf-audioclient-iaudioclient-initialize (If the call succeeds, the method allocates a buffer that is a least this large). I did some test and the buffer size may vary over time. If you need precise buffer size, you should try Asio host. By the way, if you succed, I am interested since I can't get it to work (#539). |
In such case, is there a way to know ahead of time the buffer size that we will receive? Or a sensible upper bound for it? (I need it to implement de-interlacing of the channels) |
I'm running into latency issues on Windows. When I iterate over the
SupportedStreamConfig
s I only get one option:And when I try to change the buffer size to anything other than
BufferSize::Default
it tells meI'm kind of at a loss for where to go from here.
The text was updated successfully, but these errors were encountered: