Skip to main content

AudioCallback

Type Alias AudioCallback 

Source
pub type AudioCallback = Arc<dyn Fn(&[u8], &str) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Available on crate feature realtime only.
Expand description

Callback for audio output events (receives raw PCM bytes).

Aliased Typeยง

pub struct AudioCallback { /* private fields */ }