private void OnDisposed(object sender, EventArgs e) { //清理资源 if (mCameraDevice != null) { mCameraDevice.release(); } if (mCameraDevice != null) { mMicDevice.release(); } if (mSpeakerDevice != null) { mSpeakerDevice.release(); } if (mCameraDeviceList != null) { mCameraDeviceList.release(); } if (mMicDeviceList != null) { mMicDeviceList.release(); } if (mSpeakerDevice != null) { mSpeakerDeviceList.release(); } mCameraDevice = null; mMicDevice = null; mSpeakerDevice = null; mCameraDeviceList = null; mMicDeviceList = null; mSpeakerDeviceList = null; mTRTCCloud = null; }
private void OnDisposed(object sender, EventArgs e) { //清理资源 if (mTRTCCloud == null) { return; } if (this.micTestBtn.Text.Equals("停止")) { mTRTCCloud.stopMicDeviceTest(); } if (this.speakerTestBtn.Text.Equals("停止")) { mTRTCCloud.stopSpeakerDeviceTest(); } // 注意:系统混音功能暂时不支持64位系统 if (!Util.IsSys64bit()) { if (this.systemAudioCheckBox.Checked) { mTRTCCloud.stopSystemAudioLoopback(); } } if (mMicDevice != null) { mMicDevice.release(); } if (mSpeakerDevice != null) { mSpeakerDevice.release(); } if (mMicDeviceList != null) { mMicDeviceList.release(); } if (mSpeakerDeviceList != null) { mSpeakerDeviceList.release(); } mMicDevice = null; mSpeakerDevice = null; mMicDeviceList = null; mSpeakerDeviceList = null; mTRTCCloud = null; }
private void OnDisposed(object sender, EventArgs e) { //清理资源 if (mTRTCCloud == null) { return; } if (mCameraDeviceList != null) { mCameraDeviceList.release(); } mCameraDeviceList = null; mTRTCCloud = null; }
private void OnDisposed(object sender, EventArgs e) { //清理资源 if (mTRTCCloud == null || mDeviceManager == null) { return; } if (this.micTestBtn.Text.Equals("停止")) { mDeviceManager.stopMicDeviceTest(); } if (this.speakerTestBtn.Text.Equals("停止")) { mDeviceManager.stopSpeakerDeviceTest(); } if (this.systemAudioCheckBox.Checked) { mTRTCCloud.stopSystemAudioLoopback(); } if (mMicDevice != null) { mMicDevice.release(); } if (mSpeakerDevice != null) { mSpeakerDevice.release(); } if (mMicDeviceList != null) { mMicDeviceList.release(); } if (mSpeakerDeviceList != null) { mSpeakerDeviceList.release(); } mMicDevice = null; mSpeakerDevice = null; mMicDeviceList = null; mSpeakerDeviceList = null; mTRTCCloud = null; mDeviceManager = null; }