Expand description
Microphone capture lifecycle (M-MIC.1 / AUT-278) + worker.
Structural mirror of crate::preview (M-CAM.2 / M-CAM.3):
a four-state lifecycle MicLifecycle managed inside
MicCaptureState (Tauri-managed) plus a dedicated worker
thread defined in pipeline that owns the gst-launch-1.0
subprocess. The state machine is pure Rust (no tauri::*, no
async, no I/O) so its transition contract works on every OS
including Windows, where Tauri 2’s mock_builder won’t even
link at test time (per CLAUDE.md).
Re-exports§
pub use pipeline::MicCaptureHandle;pub use pipeline::MicCapturePipeline;
Modules§
- pipeline
- M-MIC.1 / AUT-278 — microphone-capture worker thread.
Structs§
- MicCapture
State - Tauri-managed wrapper around
MicLifecycle. Held intauri::Stateso the IPC handlers and the worker thread share one source of truth for the lifecycle.
Enums§
- MicError
- IPC-surface error variants for the mic capture commands.
- MicLifecycle
- Lifecycle state of the microphone capture worker.