pub unsafe fn load_library<P: AsRef<Path>>(
path: P,
) -> Result<(), DynamicLoadingError>Available on crate feature
runtime-linking only.Expand description
Loads the AIC dynamic library from path when the runtime-linking feature is enabled.
This is optional. With runtime-linking, the library is loaded automatically on first use
from the platform default name (libaic.so / libaic.dylib / aic.dll) via the OS loader
search path. Call this only to pick a specific file, and do so before the first SDK call.
§Safety
path must point to an AIC dynamic library that is ABI-compatible with this crate’s bundled
aic.h header. Loading an incompatible library can cause undefined behavior when SDK functions
are called.