Skip to content

Commit 00dd057

Browse files
committed
monkeyfix: make the microphone record on linux
This fix is not a real fix. I wish I could properly fix the bug, but it eludes me. See godotengine#33184
1 parent a43bb59 commit 00dd057

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/pulseaudio/audio_driver_pulseaudio.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,10 @@ Error AudioDriverPulseAudio::capture_init_device() {
671671
break;
672672
}
673673

674+
// This print line is enough to fix the microphone bug on my machine,
675+
// which therefore smells like a race condition.
676+
print_verbose("PulseAudio: detected " + itos(pa_rec_map.channels) + " input channels");
677+
674678
pa_sample_spec spec;
675679

676680
spec.format = PA_SAMPLE_S16LE;

0 commit comments

Comments
 (0)