pub unsafe extern "C" fn projectm_load_preset_data(
instance: projectm_handle,
data: *const c_char,
smooth_transition: bool,
)Expand description
@brief Loads a preset from the data pointer.
Currently, the preset data is assumed to be in Milkdrop format.
If the preset can’t be loaded, no switch takes place and the current preset will continue to be displayed. Note that if there’s a transition in progress when calling this function, the transition will be finished immediately, even if the new preset can’t be loaded.
@param instance The projectM instance handle. @param data The preset contents to load. @param smooth_transition If true, the new preset is smoothly blended over.