Пример #1
0
 public int Activate()
 {
     return(ComObject.Activate());
 }
Пример #2
0
 public AudioSessionManager GetSessionManager()
 {
     Marshal.ThrowExceptionForHR(ComObject.Activate(typeof(IAudioSessionManager2).GUID, 0, IntPtr.Zero, out var sessionManager));
     return(new AudioSessionManager((IAudioSessionManager2)sessionManager));
 }