You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a Godot or Ubuntu bug, but I'll report it here as the running project is closing. I think this is wrong behavior.
When trying to play audio, the running project closes with the following errors if there are no audio output devices (for example, headphones are not connected).
E 0:00:00.216 pa_sink_info_cb: PulseAudio: sink info error: No such entity
<C++ Source> drivers/pulseaudio/audio_driver_pulseaudio.cpp:77 @ pa_sink_info_cb()
E 0:00:00.216 init_device: PulseAudio: init device failed to detect number of output channels
<C++ Source> drivers/pulseaudio/audio_driver_pulseaudio.cpp:195 @ init_device()
Perhaps this is due to the fact that in 22.10 Ubuntu switched from PulseAudio to PipeWire.
Steps to reproduce
Try running a project with audio on Ubuntu 22.10 without audio output devices.
If any configs are required, I can provide them.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered:
It looks like this error might be related to the way the code is written in 'godot/audio_driver_pulseaudio.cpp'
There seems to be no built-in case for an actual 0 device error; I'm not sure if it's supposed to be coded that way intentionally.
void AudioDriverPulseAudio::pa_sink_info_cb(pa_context *c, const pa_sink_info *l, int eol, void *userdata) {
AudioDriverPulseAudio *ad = static_cast<AudioDriverPulseAudio *>(userdata);
// If eol is set to a positive number, you're at the end of the list
if (eol > 0) {
return;
}
// If eol is set to a negative number there's an error.
if (eol < 0) {
ERR_PRINT("PulseAudio: sink info error: " + String(pa_strerror(pa_context_errno(c))));
ad->pa_status--;
return;
}
ad->pa_map = l->channel_map;
ad->pa_status++;
}
So the less than 0 condition is called instead, rather than a condition that would allow for a complete lack of an audio device?
Godot version
v3.5.stable.official [991bb6a], v4.0.beta3.official [01ae26d]
System information
Kubuntu 22.10
Issue description
Not sure if this is a Godot or Ubuntu bug, but I'll report it here as the running project is closing. I think this is wrong behavior.
When trying to play audio, the running project closes with the following errors if there are no audio output devices (for example, headphones are not connected).
Perhaps this is due to the fact that in 22.10 Ubuntu switched from PulseAudio to PipeWire.
Steps to reproduce
Try running a project with audio on Ubuntu 22.10 without audio output devices.
If any configs are required, I can provide them.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: