SDL icon indicating copy to clipboard operation
SDL copied to clipboard

WASAPI can't find requested audio endpoint: Element not found.

Open rom1v opened this issue 1 year ago • 4 comments

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 avatar Aug 08 '24 13:08 rom1v

@rom1v, can you reproduce this with the SDL preview 3.1.6 or main code? If so, what sound card are you using?

slouken avatar Dec 04 '24 18:12 slouken

@slouken I can't reproduce it myself. I just reported issues reported in the linked comments.

rom1v avatar Dec 04 '24 20:12 rom1v

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.

slouken avatar Dec 04 '24 21:12 slouken

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.

icculus avatar Dec 04 '24 23:12 icculus