Beispiel #1
0
        private void GetAudioSessionManager()
        {
            object result;

            Marshal.ThrowExceptionForHR(deviceInterface.Activate(ref IDD_IAudioSessionManager, ClsCtx.ALL, IntPtr.Zero, out result));
            audioSessionManager = new AudioSessionManager(result as IAudioSessionManager);
        }
Beispiel #2
0
 private void GetAudioSessionManager()
 {
     object result;
     Marshal.ThrowExceptionForHR(deviceInterface.Activate(ref IDD_IAudioSessionManager, ClsCtx.ALL, IntPtr.Zero, out result));
     audioSessionManager = new AudioSessionManager(result as IAudioSessionManager);
 }