callback

Function callback 

Source
pub fn callback<T: Sample>(
    input_sender: Sender<Vec<u8>>,
    transformers: Vec<Box<dyn Transformer + Send + 'static>>,
    opus_encoder: Encoder,
    buffer_size: usize,
    input_volume_receiver: Receiver<f32>,
    phase_watcher: Receiver<StatePhase>,
) -> impl FnMut(&[T], &InputCallbackInfo) + Send + 'static
Expand description

Generates a callback that receives Samples and sends them as floats to a futures_channel::mpsc::Sender.