Fix PulseAudio driver for audio devices that report unknown number of channels
(cherry picked from commit 11fbfab7ec
)
This commit is contained in:
parent
259b9664ef
commit
1f07f71b6c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue