/// <summary> /// 启动录制模块 (Start the recorder module) /// </summary> public static void StartRecorder() { if (ShareRECImpl.CanStart()) { beginHanlder.enabled = true; endHanlder.enabled = true; ShareRECImpl.InitRenderTexture(); ShareRECImpl.Start(); } }
/// <summary> /// 启动录制模块 (Start the recorder module) /// </summary> public static void StartRecorder() { if (ShareRECImpl.CanStart()) { // recorder = true; // pause = false; // Debug.LogError (" ================= StartRecorder "); // PrepareSoundCopying (1,8000,8000*2); // ThreadStart ts = new ThreadStart(recordMic); // Thread t = new Thread (ts); // Debug.LogError (" ================= StartRecorder 111 "); // t.Start (); // Debug.LogError (" ================= StartRecorder 222 "); beginHanlder.enabled = true; endHanlder.enabled = true; ShareRECImpl.InitRenderTexture(); ShareRECImpl.Start(); // Debug.LogError (" ================= StartRecorder 333"); } }