Expand description
The inputs a host can record from, and the plan one opens at.
Re-exportsΒ§
use cpal::traits::DeviceTrait;πuse cpal::traits::HostTrait;πuse crate::Error;πuse crate::SAMPLE_RATE;π
StructsΒ§
- Candidate π
- One openable offer, scored the way the negotiation chooses between them.
- Device
- An input the host can offer a user, and record from.
- Input
Plan π - How a capture opens: the stream config the device will run at, the format
its stream delivers, and the rate its samples arrive at when that is not
already
SAMPLE_RATE.
EnumsΒ§
- Input
Format π - The sample formats the capture can open. Anything else is refused at the plan rather than when the stream is built.
FunctionsΒ§
- describe π
- The hostβs own record of a device already resolved: its id, its label, and whether the system would have picked it unaided.
- devices
- Every input the host could record from.
- input_
config π - Pick an input the models can read.
- input_
plan π - The negotiation over synthetic ranges, so a device is not needed to test it.
- open_
device π - Resolve a callerβs choice to a cpal device.
- record π
- One device as the host describes it: the id a host persists, the label a picker shows, and whether the system would pick it unaided.