[][src]Function fluidlite_sys::fluid_synth_write_s16

pub unsafe extern "C" fn fluid_synth_write_s16(
    synth: *mut fluid_synth_t,
    len: c_int,
    lout: *mut c_void,
    loff: c_int,
    lincr: c_int,
    rout: *mut c_void,
    roff: c_int,
    rincr: c_int
) -> c_int

Generate a number of samples. This function expects two signed 16bits buffers (left and right channel) that will be filled with samples.

\param synth The synthesizer \param len The number of samples to generate \param lout The sample buffer for the left channel \param loff The offset, in samples, in the left buffer where the writing pointer starts \param lincr The increment, in samples, of the writing pointer in the left buffer \param rout The sample buffer for the right channel \param roff The offset, in samples, in the right buffer where the writing pointer starts \param rincr The increment, in samples, of the writing pointer in the right buffer \returns 0 if no error occured, non-zero otherwise