pub unsafe extern "C" fn openmpt_module_create(
    stream_callbacks: openmpt_stream_callbacks,
    stream: *mut c_void,
    logfunc: openmpt_log_func,
    loguser: *mut c_void,
    ctls: *const openmpt_module_initial_ctl
) -> *mut openmpt_module
Expand description

\brief Construct an openmpt_module

\param stream_callbacks Input stream callback operations. \param stream Input stream to load the module from. \param logfunc Logging function where warning and errors are written. The logging function may be called throughout the lifetime of openmpt_module. May be NULL. \param loguser User-defined data associated with this module. This value will be passed to the logging callback function (logfunc) \param ctls A map of initial ctl values. See openmpt_module_get_ctls() \return A pointer to the constructed openmpt_module, or NULL on failure. \remarks The input data can be discarded after an openmpt_module has been constructed successfully. \sa openmpt_stream_callbacks \sa \ref libopenmpt_c_fileio \deprecated Please use openmpt_module_create2().