Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Could not open audio device: WASAPI can't initialize audio client #3799

Closed
hellishvictor opened this issue Mar 12, 2023 · 15 comments
Closed

Comments

@hellishvictor
Copy link

hellishvictor commented Mar 12, 2023

Environment

  • OS: Win 7 x64
  • scrcpy version: 2.0
  • installation method: Windows release
  • device model: Samsung Galaxy A
  • Android version: 12

Hi, I tried the new v2.0, and after of display the android desktop, it shows:
ERROR: Could not open audio device: WASAPI can't initialize audio client: No se ha llamado a CoInitialize.
ERROR: Demuxer error
WARN: Killing the server...
And then it closes, Disabling the audio with "scrcpy --no-audio" works.
Cheers.

@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2023

Could you try to force an audio driver:

set SDL_AUDIODRIVER=directsound
scrcpy

Or

set SDL_AUDIODRIVER=winmm
scrcpy

?

@hellishvictor
Copy link
Author

Ok it works, but it sounds very "robotic".

@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2023

#3793?

@rom1v rom1v mentioned this issue Mar 12, 2023
2 tasks
@hellishvictor
Copy link
Author

#3793?

Yeah, the new scrcpy worked like a charm; you fucking rule!
Cheers.

@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2023

Does #3793 fixes the problem with directsound or winmm?

@hellishvictor
Copy link
Author

directsound

@Huang930918
Copy link

请问下这个问题怎么解决的?我现在也遇到这个问题,谢谢!

@Huang930918
Copy link

Hi,Could you tell me how to solve this problem? I have the same problem now, thank you!

@rom1v rom1v mentioned this issue Aug 30, 2023
2 tasks
@Felindril
Copy link

Felindril commented Nov 27, 2023

Hi,
This errer is back here w/ new v2.3

`Microsoft Windows [version 10.0.19045.3570]
(c) Microsoft Corporation. Tous droits réservés.

scrcpy 2.3 https://github.com/Genymobile/scrcpy
INFO: ADB device found:
INFO: --> (usb) 2C171FDH200BEE device Pixel_7
D:\SCRCpy\scrcpy-server: 1 file pushed, 0 skipped. 41.7 MB/s (65851 bytes in 0.002s)
[server] INFO: Device: [Google] google Pixel 7 (Android 14)
INFO: Renderer: direct3d
INFO: Texture: 1080x2400
[server] INFO: Device screen turned off
ERROR: Could not open audio device: WASAPI can't find requested audio endpoint: ├ël├®ment introuvable.
ERROR: Demuxer error
WARN: Killing the server...

`
SCRCpy works fine with --no-audio added

Have a nice day.

@rom1v
Copy link
Collaborator

rom1v commented Nov 27, 2023

This errer is back here w/ new v2.3

Could you please replace SDL2.dll in your scrcpy 2.3 directory by the one in scrcpy 2.2, please?

@Felindril
Copy link

Felindril commented Nov 27, 2023

This errer is back here w/ new v2.3

Could you please replace SDL2.dll in your scrcpy 2.3 directory by the one in scrcpy 2.2, please?

I just tried, same result.
I also tried with the one in SCRCpy v2.1 to no avail.

Thanks for your time and work,

Cheers !

@rom1v
Copy link
Collaborator

rom1v commented Nov 27, 2023

On which version did it work for you? (a full scrcpy release)

@wine2siri
Copy link

On which version did it work for you? (a full scrcpy release)

FYI

Just got the same error on v2.3.1
Android 13
Microsoft Windows [version 10.0.19045.3570]

I tried the previous versions one by one till v2.0, the error kept showing up.
Then I tried to replaced the SDL2.dll with other versions, nothing changed.

Finally, I have to use this command for now, scrcpy --no-audio.

Thanks for your work, bro. Hope there will be a real solution soon!

image

@rom1v
Copy link
Collaborator

rom1v commented Dec 5, 2023

Does this workaround work? #3856 (comment)

@wine2siri
Copy link

Does this workaround work? #3856 (comment)

Thx a lot for your help, it works well for me!

@rom1v rom1v mentioned this issue Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants