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

            Marshal.ThrowExceptionForHR(this.deviceInterface.Activate(ref MMDevice.IDD_IAudioSessionManager, ClsCtx.ALL, IntPtr.Zero, out obj));
            this.audioSessionManager = new AudioSessionManager(obj as IAudioSessionManager);
        }
Beispiel #2
0
        public void Dispose()
        {
            AudioEndpointVolume expr_06 = this.audioEndpointVolume;

            if (expr_06 != null)
            {
                expr_06.Dispose();
            }
            AudioSessionManager expr_17 = this.audioSessionManager;

            if (expr_17 != null)
            {
                expr_17.Dispose();
            }
            GC.SuppressFinalize(this);
        }
Beispiel #3
0
 internal AudioSessionNotification(AudioSessionManager parent)
 {
     this.parent = parent;
 }