pub unsafe extern "C" fn openmpt_module_create_from_memory(
filedata: *const c_void,
filesize: usize,
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 filedata Data to load the module from. \param filesize Amount of data available. \param logfunc Logging function where warning and errors are written. The logging function may be called throughout the lifetime of openmpt_module. \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 \ref libopenmpt_c_fileio \deprecated Please use openmpt_module_create_from_memory2().