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); }
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); }
internal AudioEndpointVolumeCallback(AudioEndpointVolume parent) { this.parent = parent; }