-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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: CoInitialize has not been called on Windows 7 #3825
Comments
Even with the new option See #3793 (comment) |
Can you provide an x86 Windows binary so I can test it? I cannot test the x64 Windows version on Windows 7 at the moment. |
Here is a x86 build for the current
|
Thanks, @echo off |
Are there any solutions for this "could not open audio device: WASAPI can't initialized audio client " Error ? |
See #3856 (comment) |
So it's presumably fixed in SDL 2.28 (see libsdl-org/SDL#7478). Please test this version and confirm that the WASAPI issue is fixed (or not):
|
Hi, |
Awesome, thank you for your test 👍 |
not working on my andriod 13 iqoo z6 |
@vashviS What is the full output in the console when you run scrcpy? |
@Falcosoft I didn't ask, but does it still work for you in the final scrcpy v2.1? |
scrcpy 2.0 https://github.com/Genymobile/scrcpy |
os windows 10 64bit |
did not worked just crashes after 10 sec |
Oh, so initially it worked, but then it failed? Could you please try with audio only (and on scrcpy v2.1 please):
|
sure |
@vashviS Btw, given the stack trace, it is a different issue as this one. You shoud open a new issue. |
Yes, it is also working in the final v2.1. |
Environment
After starting scrcpy-console on Windows 7 x86 or Windows 7 x64 the following error is written to console and the client is closed:
ERROR: Could not open audio device: WASAPI can't initialize audio client: CoInitialize has not been called.
ERROR: Demuxer error
WARN: Killing the server...
It seems to be an SDL2 error. The workaround to use other SDL2 audio driver like winmm or directsound does not work with srccpy since regardless of the buffer size you only get static/garbled audio.
The solution could be to add CoInitialize() call to the client.
The text was updated successfully, but these errors were encountered: