You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Fix PulseAudio driver for audio devices that report unknown number of channels
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user