WASAPI can't find requested audio endpoint: Element not found.
The previous error message (#7478):
WASAPI can't initialize audio client: CoInitialize has not been called.
has been fixed.
But now, scrcpy has report of a similar error:
WASAPI can't find requested audio endpoint: Element not found.
With directsound, it seems to work.
(I open a new issue as suggested.)
See:
- https://github.com/Genymobile/scrcpy/issues/4111
- https://github.com/Genymobile/scrcpy/issues/4281#issuecomment-2275771348
@rom1v, can you reproduce this with the SDL preview 3.1.6 or main code? If so, what sound card are you using?
@slouken I can't reproduce it myself. I just reported issues reported in the linked comments.
Okay, WASAPI in general is working, and shipping to millions of people in CS2 and DOTA, so I expect this is something unique with the user's system or drivers. If we can get a debugger on it, that would be helpful, and until we get more info I'll move this out of the shipping milestone.
If this pops up again, that error might trigger if it takes more than eight seconds to get a result, so if this comes up, ask if the program seemed to hang for a noticeable time before reporting that error.
We added that timeout because while this is usually instantaneous, some Intel hardware talking over HDMI could take up to that long to prep an idle audio device...but something could conceivably just hang in an audio driver for no apparent reason.