Hello, I've discovered a bug where the stream's data callback gets called even after alsa_stream_stop has been called. This in-turn causes a crash in Firefox when it tries to capture the microphone from it's WebRTC component (happens very rarely). I've traced it down to cubeb. This does not seem to be reproducible with the example program from the docs
Still debugging it, will keep updating here with more details
More details: https://bugzilla.mozilla.org/show_bug.cgi?id=1859796