private void GetAudioPeakMeter() { _Part.Activate(CLSCTX.ALL, ref IIDs.IID_IAudioPeakMeter, out object result); if (result != null) { _AudioPeakMeter = new AudioPeakMeter(result as IAudioPeakMeter); _AudioPeakMeterChangeNotification = new ControlChangeNotify(this); Marshal.ThrowExceptionForHR(_Part.RegisterControlChangeCallback(ref IIDs.IID_IAudioPeakMeter, _AudioPeakMeterChangeNotification)); } }
private void GetAudioPeakMeter() { object result = null; _Part.Activate(CLSCTX.ALL, ref IIDs.IID_IAudioPeakMeter, out result); if (result != null) { _AudioPeakMeter = new AudioPeakMeter(result as IAudioPeakMeter); _AudioPeakMeterChangeNotification = new ControlChangeNotify(this); Marshal.ThrowExceptionForHR(_Part.RegisterControlChangeCallback(ref IIDs.IID_IAudioPeakMeter, _AudioPeakMeterChangeNotification)); } }