scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Crash in Windows if no audio sink "can't find requested audio endpoint"

Open Justin-Maxwell opened this issue 4 months ago • 1 comments

Environment

  • OS: Win 11
  • Scrcpy version: 27
  • Installation method: Windows installer x64
  • Device model: Pixel 6 Pro
  • Android version: 15

Describe the bug

scrcpy exits shortly after launch if no audio sink on PC ?

ERROR: Could not open audio device: WASAPI can't find requested audio endpoint: Element not found. ERROR: Demuxer error

Is there a way to connect to some default sink that windows will redirect on connecting a bluetooth or other audio device?

In any event, per https://github.com/Genymobile/scrcpy/blob/master/doc/audio.md

If audio capture fails, then mirroring continues with video only (since audio is enabled by default, it is not acceptable to make scrcpy fail if it is not available)

… should probably apply equally at the renderer.

Justin-Maxwell avatar Oct 11 '24 21:10 Justin-Maxwell