コード例 #1
0
ファイル: MMDevice.cs プロジェクト: EnergonV/BestCS
        private void GetAudioMeterInformation()
        {
            object result;

            Marshal.ThrowExceptionForHR(deviceInterface.Activate(ref IID_IAudioMeterInformation, ClsCtx.ALL, IntPtr.Zero, out result));
            audioMeterInformation = new AudioMeterInformation(result as IAudioMeterInformation);
        }
コード例 #2
0
ファイル: MMDevice.cs プロジェクト: EnergonV/BestCS
 private void GetAudioMeterInformation()
 {
     object result;
     Marshal.ThrowExceptionForHR(deviceInterface.Activate(ref IID_IAudioMeterInformation, ClsCtx.ALL, IntPtr.Zero, out result));
     audioMeterInformation = new AudioMeterInformation(result as IAudioMeterInformation);
 }