/// <summary> /// NIM SDK 初始化语音模块 /// </summary> /// <param name="userDataParentPath">缓存目录</param> /// <returns><c>true</c> 调用成功, <c>false</c> 调用失败</returns> public static bool InitModule(string userDataParentPath) { #if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX return(false); #else return(_initialized = AudioNativeMethods.nim_audio_init_module(userDataParentPath)); #endif }
/// <summary> /// NIM SDK 初始化语音模块 /// </summary> /// <param name="userDataParentPath">用户目录</param> /// <returns><c>true</c> 调用成功, <c>false</c> 调用失败</returns> public static bool InitModule(string userDataParentPath) { return(_initialized = AudioNativeMethods.nim_audio_init_module(userDataParentPath)); }