void DetectHeadset(uint userId) { uint version; EdkDll.IEE_HardwareGetVersion(userId, out version); long headsetVersion = (version & 0xffff0000) >> 16; long dongleVersion = (version & 0x0000ffff); //0x30XX/0x70XX - EPOC+ Consumer, 0x6XX/0x7XX - EPOC+ Premium //0x50XX/0x90XX - Insight Consumer, 0x8XX/0x9XX - Insight Premium //0x1000/0x1E00 - EPOC Consumer, 0x0565 - EPOC Premium //0x17B0 - Insight Consumer, 0x0170 - Insight Premium on Prototype mode if (headsetVersion == 0x0565 || headsetVersion == 0x1000 || headsetVersion == 0x1E00) { if (_currentHeadsetVersion != headsetVersion) { _currentHeadsetVersion = headsetVersion; headsetType = HeadsetType.Epoc; ShowHeadset(); } return; } headsetVersion = headsetVersion & 0xff00; if (headsetVersion == 0x3000 || headsetVersion == 0x7000 || headsetVersion == 0x600 || headsetVersion == 0x700) { if (_currentHeadsetVersion != headsetVersion) { _currentHeadsetVersion = headsetVersion; headsetType = HeadsetType.Epoc; ShowHeadset(); } return; } if (headsetVersion == 0x5000 || headsetVersion == 0x9000 || headsetVersion == 0x800 || headsetVersion == 0x900) { if (_currentHeadsetVersion != headsetVersion) { _currentHeadsetVersion = headsetVersion; headsetType = HeadsetType.Insight; ShowHeadset(); } return; } }
public IPlayback GetHeadset(HeadsetType type, IOutput output) { switch (type) { case HeadsetType.IPhoneheadset: return(new iPhoneHeadset(output)); case HeadsetType.SamsungHeadset: return(new SamsungHeadset(output)); case HeadsetType.UnofficialiPhoneHeadset: return(new UnofficialiPhoneHeadset(output)); default: throw new NotSupportedException(); } }
void ReleaseDesignerOutlets() { if (FanTeam != null) { FanTeam.Dispose(); FanTeam = null; } if (HeadsetId != null) { HeadsetId.Dispose(); HeadsetId = null; } if (HeadsetIdTableCell != null) { HeadsetIdTableCell.Dispose(); HeadsetIdTableCell = null; } if (HeadsetType != null) { HeadsetType.Dispose(); HeadsetType = null; } if (InGameToggle != null) { InGameToggle.Dispose(); InGameToggle = null; } if (PlayerId != null) { PlayerId.Dispose(); PlayerId = null; } if (PlayerIdCell != null) { PlayerIdCell.Dispose(); PlayerIdCell = null; } if (PlayerName != null) { PlayerName.Dispose(); PlayerName = null; } }
void DetectHeadset(uint userId) { //uint v = 0; ////auto detect headset type //EdkDll.Plugin_IEE_HardwareGetVersion((UInt32)userId, out v); //uint a = v >> 24; //UnityEngine.Debug.Log ("detect hardware: " + a.ToString() + ":" + v.ToString ()); //if (a != (uint)IEE_HeadsetVersion_t.IEE_INSIGHT_EEG1_NEW && // a != (uint)IEE_HeadsetVersion_t.IEE_INSIGHT_EEG2_NEW && // a != (uint)IEE_HeadsetVersion_t.IEE_INSIGHT_NOEEG1_NEW && // a != (uint)IEE_HeadsetVersion_t.IEE_INSIGHT_NOEEG2_NEW && // a != (uint)IEE_HeadsetVersion_t.IEE_INSIGHT_NOEEG1_OLD && // a != (uint)IEE_HeadsetVersion_t.IEE_INSIGHT_NOEEG1_OLD) //{ // txtDevice.text = "Epoc"; // headsetType = HeadsetType.Epoc; //} //else //{ // txtDevice.text = "Insight"; // headsetType = HeadsetType.Insight; //} headsetType = HeadsetType.Insight; }
private static extern int vive_3dsp_listener_set_headset_plugin(HeadsetType mode);