1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #18124 from marcelofg55/pulse_channels

Fix PulseAudio driver for audio devices that report unknown number of channels
This commit is contained in:
Rémi Verschelde
2018-04-12 13:46:10 +02:00
committed by GitHub

View File

@@ -149,8 +149,9 @@ Error AudioDriverPulseAudio::init_device() {
break;
default:
ERR_PRINTS("PulseAudio: Unsupported number of channels: " + itos(pa_channels));
ERR_FAIL_V(ERR_CANT_OPEN);
WARN_PRINTS("PulseAudio: Unsupported number of channels: " + itos(pa_channels));
pa_channels = 2;
channels = 2;
break;
}