private void GetAudioLoudness() { _Part.Activate(CLSCTX.ALL, ref IIDs.IID_IAudioLoudness, out object result); if (result != null) { _AudioLoudness = new AudioLoudness(result as IAudioLoudness); _AudioLoudnessChangeNotification = new ControlChangeNotify(this); Marshal.ThrowExceptionForHR(_Part.RegisterControlChangeCallback(ref IIDs.IID_IAudioLoudness, _AudioLoudnessChangeNotification)); } }
private void GetAudioLoudness() { object result = null; _Part.Activate(CLSCTX.ALL, ref IIDs.IID_IAudioLoudness, out result); if (result != null) { _AudioLoudness = new AudioLoudness(result as IAudioLoudness); _AudioLoudnessChangeNotification = new ControlChangeNotify(this); Marshal.ThrowExceptionForHR(_Part.RegisterControlChangeCallback(ref IIDs.IID_IAudioLoudness, _AudioLoudnessChangeNotification)); } }