Introduction

ERROR: Could not open audio device: WASAPI can't find requested audio endpoint: 要素が見つかりません。 と言われて落ちる。

具体的には下記。

1
2
3
4
5
6
7
8
9
10
$ scrcpy -e
scrcpy 3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (tcpip) 192.168.11.44:44151 device SO_41B
C:\Users\user\AppData\Local\Microsoft\WinGet\Packages\Ge... file pushed, 0 skipped. 71.6 MB/s (90640 bytes in 0.001s)
[server] INFO: Device: [Sony] docomo SO-41B (Android 13)
INFO: Renderer: direct3d
INFO: Texture: 720x1496
ERROR: Could not open audio device: WASAPI can't find requested audio endpoint: 要素が見つかりません。
ERROR: Demuxer error

How to resolve?

公式の issue に hey so my phone audio not working and it keeps crashing when i try to open it
#3856
というのが上がっていた。

その中で rom1v の発言に

1
2
$ set SDL_AUDIODRIVER=directsound
$ scrcpy

または

1
$ scrcpy --no-audio

で解決する、とあった。

自分は後者の方法で解決。