You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Fix PulseAudio driver for audio devices that report unknown number of channels
(cherry picked from commit 11fbfab7ec)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
259b9664ef
commit
1f07f71b6c
@@ -178,8 +178,9 @@ Error AudioDriverPulseAudio::init() {
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user