Skip to content

Commit

Permalink
monkeyfix: make the microphone record on linux
Browse files Browse the repository at this point in the history
This fix is not a real fix.
I wish I could properly fix the bug, but it eludes me.

See godotengine#33184
  • Loading branch information
Goutte authored and Adrenesis committed Aug 24, 2020
1 parent bea39be commit 3865bc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/pulseaudio/audio_driver_pulseaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,10 @@ Error AudioDriverPulseAudio::capture_init_device() {
break;
}

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

pa_sample_spec spec;

spec.format = PA_SAMPLE_S16LE;
Expand Down

0 comments on commit 3865bc7

Please sign in to comment.