示例#1
0
 private void GetAudioEndpointVolume()
 {
     try
     {
         object result;
         Marshal.ThrowExceptionForHR(_RealDevice.Activate(ref IID_IAudioEndpointVolume, CLSCTX.ALL, IntPtr.Zero,
                                                          out result));
         _AudioEndpointVolume = new AudioEndpointVolume(result as IAudioEndpointVolume);
     }
     catch
     {
         _AudioEndpointVolume = null;
     }
 }
示例#2
0
 private void GetAudioEndpointVolume()
 {
     try
     {
         object result;
         Marshal.ThrowExceptionForHR(_RealDevice.Activate(ref IID_IAudioEndpointVolume, CLSCTX.ALL, IntPtr.Zero,
             out result));
         _AudioEndpointVolume = new AudioEndpointVolume(result as IAudioEndpointVolume);
     }
     catch
     {
         _AudioEndpointVolume = null;
     }
 }
 internal AudioEndpointVolumeCallback(AudioEndpointVolume parent)
 {
     _Parent = parent;
 }
示例#4
0
 internal AudioEndpointVolumeCallback(AudioEndpointVolume parent)
 {
     _Parent = parent;
 }