private void GetAudioMeterInformation()
 {
     object result;
     Marshal.ThrowExceptionForHR(deviceInterface.Activate(ref IID_IAudioMeterInformation, ClsCtx.ALL, IntPtr.Zero,
         out result));
     audioMeterInformation = new AudioMeterInformation(result as IAudioMeterInformation);
 }
Esempio n. 2
0
        private void GetAudioMeterInformation()
        {
            object result;

            Marshal.ThrowExceptionForHR(deviceInterface.Activate(ref IID_IAudioMeterInformation, ClsCtx.ALL, IntPtr.Zero,
                                                                 out result));
            audioMeterInformation = new AudioMeterInformation(result as IAudioMeterInformation);
        }