예제 #1
0
        /// <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
        }
예제 #2
0
파일: NIMAudioAPI.cs 프로젝트: zanjs/Wawaji
 /// <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));
 }