pub fn stop_mic_capture(
state: State<'_, MicCaptureState>,
pipeline_state: State<'_, MicCaptureHandle>,
)Expand description
Stop the microphone capture worker (M-MIC.1 / AUT-278).
Drops the MicCapturePipeline (which cancels the loop, joins
the thread, and — via GstreamerAudioCapture’s own Drop —
kills + reaps the gst-launch child). The worker thread resets
the lifecycle to Idle on its way out; we also do it here as a
belt-and-braces guard in case the worker had already exited via
a gst failure path.