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

This commit is contained in:
Marcelo Fernandez 2018-04-11 12:04:23 -03:00
parent d87307d850
commit 11fbfab7ec
1 changed files with 3 additions and 2 deletions

View File

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