public bool Start(string channelNumber = null)//启动指令 { PlayerModel._mu.WaitOne(); try { LogHelper.WriteInfoLog(string.Format("开始,下发指令")); Instruction ins = SetStartInstruction(channelNumber); //设置启动指令 serial.Wirte(ins.ToString()); //下发控制指令 bool ret = OperSuccess(ins, CommandState.Start); //下发控制指令后,系统进入检测状态,因为底层DSP将会恢复 if (ret) { Cache.Instance.CurrentContext.CurrentCard.InitalActualTime(); Cache.Instance.CurrentContext.CurrentCard.Start(); } //SignalSource myMedia1.SoundLocation = @""; return(ret); } catch (Exception ex) { LogHelper.WriteInfoLog("开始,下发指令失败" + ex.Message); return(false); } finally { PlayerModel._mu.ReleaseMutex(); } }