Example #1
0
        private void GetAudioEndpointVolume()
        {
            object obj;

            Marshal.ThrowExceptionForHR(this.deviceInterface.Activate(ref MMDevice.IID_IAudioEndpointVolume, ClsCtx.ALL, IntPtr.Zero, out obj));
            this.audioEndpointVolume = new AudioEndpointVolume(obj as IAudioEndpointVolume);
        }
Example #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);
        }
Example #3
0
 internal AudioEndpointVolumeCallback(AudioEndpointVolume parent)
 {
     this.parent = parent;
 }