Пример #1
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);
        }
Пример #2
0
 internal AudioEndpointVolumeCallback(AudioEndpointVolume parent)
 {
     this.parent = parent;
 }
 internal AudioEndpointVolumeCallback(AudioEndpointVolume parent)
 {
     this.parent = parent;
 }
Пример #4
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);
 }