[PATCH v3 0/2] MR337: winepulse: Return device-specific values for GetMixFormat and GetDevicePeriod

Claire (@ClearlyClaire) wine at gitlab.winehq.org
Mon Jul 4 03:28:47 CDT 2022


On Mon Jul  4 07:52:00 2022 +0000, Huw Davies wrote:
> Ah right, in the pulse driver we cache these at the start.  I'd suggest
> making this more like the alsa driver, where we unconditionally call
> into the unixlib for both `GetMixFormat()` and `GetDevicePeriod()`.
You mean moving the `pulse_name[0]` check to the unixlib, or probing the device each time? If the latter, I am not sure how to do that, as the PulseAudio APIs are asynchronous and the GetMixFormat/GetDevicePeriod APIs are synchronous.

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/337#note_3188



More information about the wine-devel mailing list