private void GetAudioEndpointVolume()
 {
     object result;
     Marshal.ThrowExceptionForHR(deviceInterface.Activate(ref IID_IAudioEndpointVolume, ClsCtx.ALL, IntPtr.Zero,
         out result));
     audioEndpointVolume = new AudioEndpointVolume(result as IAudioEndpointVolume);
 }
Beispiel #2
0
        private void GetAudioEndpointVolume()
        {
            object result;

            Marshal.ThrowExceptionForHR(deviceInterface.Activate(ref IID_IAudioEndpointVolume, ClsCtx.ALL, IntPtr.Zero,
                                                                 out result));
            audioEndpointVolume = new AudioEndpointVolume(result as IAudioEndpointVolume);
        }
 internal AudioEndpointVolumeCallback(AudioEndpointVolume parent)
 {
     _parent = parent;
 }
 internal AudioEndpointVolumeCallback(AudioEndpointVolume parent)
 {
     _parent = parent;
 }