SDL: WASAPI can't initialize audio client: CoInitialize has not been called.
The call to SDL_OpenAudioDevice(NULL, 0, &desired, &obtained, 0) fails with the following error:
WASAPI can’t initialize audio client: CoInitialize has not been called.
Maybe related: #5552 (but apparently it still fails in 2.26.3)
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17
Commits related to this issue
- wasapi: Force WIN_CoInitialize duing device open. Otherwise this won't work if you open a device on a background thread. Fixes #7478. — committed to icculus/SDL by icculus a year ago
- wasapi: Force WIN_CoInitialize duing device open. Otherwise this won't work if you open a device on a background thread. Fixes #7478. — committed to libsdl-org/SDL by icculus a year ago
- Upgrade SDL (2.28.0) for Windows Include the latest version of SDL in Windows releases. Fixes #3825 <https://github.com/Genymobile/scrcpy/issues/3825> Refs libsdl/#7478 <https://github.com/libsdl-or... — committed to Genymobile/scrcpy by rom1v a year ago
Okay, just confirming. I’ll add in a CoInitialize call, which should fix this.
Thank you for patiently waiting for binaries for so long, and then jumping right in to test them!
@icculus I confirm that SDL 2.28RC1 seems to fix the probem: https://github.com/Genymobile/scrcpy/issues/3825#issuecomment-1591483169 🎉