flexaudio-mic 0.2.0

Cross-platform microphone capture backend (cpal) for flexaudio.
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented1 out of 4 items with examples
  • Size
  • Source code size: 63.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 487.27 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Studio-Sadola/flexaudio
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tsubome

flexaudio-mic

Cross-platform microphone capture backend for the flexaudio workspace, built on cpal.

CpalMicBackend implements the CaptureBackend trait from flexaudio-core. It opens the default input device (or a named device by ID) and pushes raw interleaved f32 frames into a RawSink in a non-blocking, RT-safe way. Because cpal::Stream is !Send, the stream is created and owned on a dedicated thread; only Send-safe handles (stop flag, JoinHandle, cached format) cross thread boundaries.

Primary test target is Linux/ALSA, but the implementation works on any OS that cpal supports (Linux, Windows, macOS).

Most users should use the flexaudio facade crate instead of this one directly. Depend on flexaudio-mic only if you are wiring a custom microphone backend without the full facade.

License

MIT © 2026 tubome / Studio Sadola.