Exemple #1
0
 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));
     }
 }
Exemple #2
0
 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));
     }
 }