At the request of @JesseTG I'm opening this issue about an issue with microphone when using wasapi driver. The recording gets distorted, it doesn't happen when using sdl2 driver.
benjarmstrong mentioned this in 2 pull requests on Nov 11, 2021 Fix crash in audio callback when recording audio #54880 Add support for variable output latency in WASAPI audio driver #38210 akien-mga ...