Expand description
Microphone capture: the input device, the input plan, and the mono model-rate audio a host reads from it.
A leaf crate. It depends on no other forge crate and knows nothing about
a host, a take or a wire: open hands a caller the device’s audio and
the decision about what a frame is stays with the caller. A client’s own
shell reads frames straight off it; forge-dictate re-exports the device
list.
The stream is !Send, so it lives on a thread of its own from the moment
the device opens; Capture is the handle that stops it.
Re-exports§
pub use convert::resample_mono;pub use device::Device;pub use device::devices;pub use error::Error;pub use stream::Block;pub use stream::Capture;pub use stream::open;
Modules§
- convert 🔒
- What the device delivers, turned into the mono model-rate signal.
- device 🔒
- The inputs a host can record from, and the plan one opens at.
- error 🔒
- Why a microphone could not be opened or used.
- stream 🔒
- Opening a device and reading its audio as it arrives.
Constants§
- SAMPLE_
RATE - Sample rate every model in forge reads, and the rate
opendelivers.
Functions§
- panic_
message 🔒 - A panic payload’s own message, or a phrase where it carried none.