pump

Function pump 

Source
pub fn pump(
    handle: &LiveHandle,
    mic: Receiver<Vec<i16>>,
    mic_hz: u32,
    speaker: Sender<Playback>,
    speaker_hz: u32,
) -> VoicePump
Expand description

Run the device-independent duplex loop between audio channels and a session.

The pump owns no devices: pair it with cpal streams (Talk::talk does exactly that), a WebSocket bridge, a test harness — anything that can fill and drain a channel.