pub trait InputAudioProcessor: Send {
// Required method
fn process_frame(&mut self, frame: &mut Vec<i16>);
}Expand description
The mic-chain stage trait — one process_frame over a PCM16 frame in
place. Defined by the L1 runtime (Live::mic_processor takes the same
trait), re-exported here so a voice application has one name for it.
A per-frame processor applied to outgoing microphone audio inside
LiveHandle::send_audio — the L1 seam
the L2 voice chain (denoiser, noise gate) plugs into so hosted
surfaces (web bridge, API server) get the same hardened path as native
pumps. Runs on the send path: keep it fast and allocation-light.
Required Methods§
Sourcefn process_frame(&mut self, frame: &mut Vec<i16>)
fn process_frame(&mut self, frame: &mut Vec<i16>)
Process one PCM16 frame in place (the frame may change length).