/// <summary> /// 取消录制并删除临时文件 /// </summary> /// <param name="filepath"></param> /// <returns><c>true</c> 调用成功, <c>false</c> 调用失败</returns> public static bool CancelCapture() { #if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX return(false); #else if (!_initialized) { return(false); } return(AudioNativeMethods.nim_audio_cancel_audio()); #endif }
/// <summary> /// 取消录制并删除临时文件 /// </summary> /// <param name="audioPath"></param> /// <returns></returns> public static bool CancelCapture(string audioPath) { return(AudioNativeMethods.nim_audio_cancel_audio(audioPath)); }