/* added -> */ public AudioSessionControl GetAudioSessionControl(Guid AudioSessionGuid, bool CrossProcessSession) { IAudioSessionControl2 result = null; int hr = _AudioSessionManager.GetAudioSessionControl(ref AudioSessionGuid, (uint)(CrossProcessSession ? 1 : 0), out result); Marshal.ThrowExceptionForHR(hr); if (result == null) { return(null); } return(new AudioSessionControl(result)); }