[][src]Function fluidlite_sys::fluid_synth_alloc_voice

pub unsafe extern "C" fn fluid_synth_alloc_voice(
    synth: *mut fluid_synth_t,
    sample: *mut fluid_sample_t,
    channum: c_int,
    key: c_int,
    vel: c_int
) -> *mut fluid_voice_t

Allocate a synthesis voice. This function is called by a soundfont's preset in response to a noteon event. The returned voice comes with default modulators installed (velocity-to-attenuation, velocity to filter, ...) Note: A single noteon event may create any number of voices, when the preset is layered. Typically 1 (mono) or 2 (stereo).