pub unsafe extern "C" fn projectm_set_preset_switch_failed_event_callback(
instance: projectm_handle,
callback: projectm_preset_switch_failed_event,
user_data: *mut c_void,
)Expand description
@brief Sets a callback function that will be called when a preset change failed.
Only one callback can be registered per projectM instance. To remove the callback, use NULL.
@param instance The projectM instance handle. @param callback A pointer to the callback function. @param user_data A pointer to any data that will be sent back in the callback, e.g. context information.