コード例 #1
0
 public void Dispose()
 {
     if (_AudioSessionEvents != null)
     {
         Marshal.ThrowExceptionForHR(_AudioSessionControl2.UnregisterAudioSessionNotification(_AudioSessionEvents));
     }
 }
コード例 #2
0
 /* added -> */
 public void Dispose()
 {
     if (_AudioSessionControl != null)
     {
         if (_audioSessionEvents != null)
         {
             Marshal.ThrowExceptionForHR(_AudioSessionControl.UnregisterAudioSessionNotification(_audioSessionEvents));
         }
         Marshal.ReleaseComObject(_AudioSessionControl);
         _audioSessionEvents = null;
     }
 }
コード例 #3
0
 public void UnregisterAudioSessionNotification(IAudioSessionEvents eventConsumer)
 {
     Marshal.ThrowExceptionForHR(_AudioSessionControl.UnregisterAudioSessionNotification(eventConsumer));
 }