pub unsafe extern "C" fn openmpt_module_read_quad(
    mod_: *mut openmpt_module,
    samplerate: i32,
    count: usize,
    left: *mut i16,
    right: *mut i16,
    rear_left: *mut i16,
    rear_right: *mut i16
) -> usize
Expand description

\brief Render audio data

\param mod The module handle to work on. \param samplerate Sample rate to render output. Should be in [8000,192000], but this is not enforced. \param count Number of audio frames to render per channel. \param left Pointer to a buffer of at least count elements that receives the left output. \param right Pointer to a buffer of at least count elements that receives the right output. \param rear_left Pointer to a buffer of at least count elements that receives the rear left output. \param rear_right Pointer to a buffer of at least count elements that receives the rear right output. \return The number of frames actually rendered. \retval 0 The end of song has been reached. \remarks The output buffers are only written to up to the returned number of elements. \remarks You can freely switch between any of the “openmpt_module_read*” variants if you see a need to do so. libopenmpt tries to introduce as little switching annoyances as possible. Normally, you would only use a single one of these functions for rendering a particular module. \remarks It is recommended to use the floating point API because of the greater dynamic range and no implied clipping. \sa \ref libopenmpt_c_outputformat