pub fn initialize(flags: DebugFlags, mode: DebugMode) -> Result<()>
Expand description
Specify the level and delivery method of log messages when using the logging version of FMOD.
This function will return FMOD_RESULT::FMOD_ERR_UNSUPPORTED
when using the non-logging (release) versions of FMOD.
The logging version of FMOD can be recognized by the ‘L’ suffix in the library name, fmodL.dll or libfmodL.so for instance.
By default this crate links against non-logging versions of FMOD in release builds. This behaviour can be changed with the “fmod-sys/force-debug” feature.
Note that:
DebugFlags::LOG
produces informational, warning and error messages.
DebugFlags::WARNING
produces warnings and error messages.
DebugFlags::ERROR
produces error messages only.