sherpa_rs_sys

Type Alias SherpaOnnxGeneratedAudioCallback

Source
pub type SherpaOnnxGeneratedAudioCallback = Option<unsafe extern "C" fn(samples: *const f32, n: i32) -> i32>;

Aliased Type§

enum SherpaOnnxGeneratedAudioCallback {
    None,
    Some(unsafe extern "C" fn(_: *const f32, _: i32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const f32, _: i32) -> i32)

Some value of type T.