-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
AudioServer.capture_set_device()
and AudioServer.device()
do not work on Windows
#46710
Comments
AudioServer.capture_set_device()
doesn't work
@Gamemap Please upload a minimal reproduction project to make this easier to troubleshoot. |
I have uploaded it. |
It is probably a Windows problem. (I use Windows 8.1) |
|
AudioServer.capture_set_device()
doesn't workAudioServer.capture_set_device()
and AudioServer.device()
do not work
AudioServer.capture_set_device()
and AudioServer.device()
do not workAudioServer.capture_set_device()
and AudioServer.device()
do not work on Windows
If I run this script and use a AudioStreamPlayer with a AudioStreamMicrophone the Output prints
Edit:
|
I am on Windows 10 and setting the device as above does indeed not work. Godot 3.3.2 Stable.
|
Dosn't work on Windows 11 with Godot v4.0.alpha2.official [79077e6]. |
Not working with Godot v4.0.alpha10.official [4bbe7f0] |
Tested on Windows 7 SP1, Godot_v3.5.1-stable_win64, Godot_v3.5-stable_win64, Godot_v3.4.4-stable_win64. |
Also not working with Godot 4.0 Beta 1. |
With #69120, here is a new project to test this: beta17.zip Update: It seems that the output device does actually update, but it won't print the new device name immediately after. Selecting a new output device and playing a sound (see project) shows that it is still being updated. No luck with the input device, still. |
Microphone input does not work on Godot 4 Beta 17 & RC1 due to #72892. I'll build from master on Windows 11 and see if that makes a difference. |
Time flies. Turns out (at least my hunch is) Godot isn't initializing the microphone (even after enabling audio input in Project Settings). Checking the Windows microphone settings, the last time Godot asked for microphone use was in Godot 3 about a year ago on my machine. So for some reason, WASAPI might not be initializing now in Godot 4.0. |
Same problem here, did all of the above but WASAPI is not initializing. I got it to work in a Beta, but somehow the problem returned. If I run Godot 4 first, no error, but as soon as I turn on another audio program (to get the input in) its starts spitting the errors: |
Godot version:
Godot 3.2.3 64 Bit and Godot 3.2.4 RC3
OS/device including version:
Windows 8.1
Issue description:
AudioServer.capture_set_device("Stereo Mix")
don't work.print(AudioServer.capture_get_device_list())
Has as output:
[Default, Stereo Mix (Realtek High Definition Audio), Microphone (Realtek High Definition Audio)]
But
AudioServer.capture_set_device("Stereo Mix")
(orAudioServer.capture_set_device("Stereo Mix (Realtek High Definition Audio)"))
has withprint(AudioServer.capture_get_device())
onlyDefault
as output. (It also won't work with Microphone.)Maybe the documentation should be improved, if I have understood something wrong.
I haven't tested the AudioServer.device .
Steps to reproduce:
Minimal reproduction project:
AudioServer.zip (Enable Stereo Mix in Windows AudioSettings.)
The text was updated successfully, but these errors were encountered: