Fix PulseAudio driver for audio devices that report unknown number of channels

(cherry picked from commit 11fbfab7ec)
This commit is contained in:
Marcelo Fernandez 2018-04-11 12:04:23 -03:00 committed by Hein-Pieter van Braam
parent 259b9664ef
commit 1f07f71b6c
1 changed files with 3 additions and 2 deletions

View File

@ -178,8 +178,9 @@ Error AudioDriverPulseAudio::init() {
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;
}