コード例 #1
0
 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));
     }
 }
コード例 #2
0
ファイル: Part.cs プロジェクト: ming86/Spotify-Ad-Blocker
 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));
     }
 }