pub unsafe extern "C" fn openmpt_module_read_interleaved_stereo(
    mod_: *mut openmpt_module,
    samplerate: i32,
    count: usize,
    interleaved_stereo: *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 interleaved_stereo Pointer to a buffer of at least count2 elements that receives the interleaved stereo output in the order (L,R). \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