private void GetAudioEndpointVolume() { object result; Marshal.ThrowExceptionForHR(_device.Activate(IID_IAudioEndpointVolume, ClsCtx.All, IntPtr.Zero, out result)); _audioEndpointVolume = new AudioEndpointVolume(result as IAudioEndpointVolume); }
internal AudioEndpointVolumeCallback(AudioEndpointVolume parent) { _parent = parent; }