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)

(source: https://github.com/Genymobile/scrcpy/issues/3825)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17

Commits related to this issue

Most upvoted comments

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 🎉