internal AudioSessionManager(IAudioSessionManager2 realAudioSessionManager)
 {
     _AudioSessionManager = realAudioSessionManager;
     IAudioSessionEnumerator _SessionEnum ;
     Marshal.ThrowExceptionForHR(_AudioSessionManager.GetSessionEnumerator(out _SessionEnum));
     _Sessions = new SessionCollection(_SessionEnum);
 }
        internal AudioSessionManager(IAudioSessionManager2 realAudioSessionManager)
        {
            IAudioSessionEnumerator _SessionEnum;

            Marshal.ThrowExceptionForHR(realAudioSessionManager.GetSessionEnumerator(out _SessionEnum));
            _Sessions = new SessionCollection(_SessionEnum);
        }
Exemple #3
0
        internal AudioSessionManager(IAudioSessionManager2 realAudioSessionManager)
        {
            IAudioSessionEnumerator enumerator;

            this._AudioSessionManager = realAudioSessionManager;
            Marshal.ThrowExceptionForHR(this._AudioSessionManager.GetSessionEnumerator(out enumerator));
            this._Sessions = new SessionCollection(enumerator);
        }
Exemple #4
0
 internal AudioSessionManager(IAudioSessionManager2 realAudioSessionManager)
 {
     try
     {
         _AudioSessionManager = realAudioSessionManager;
         IAudioSessionEnumerator _SessionEnum;
         Marshal.ThrowExceptionForHR(_AudioSessionManager.GetSessionEnumerator(out _SessionEnum));
         _Sessions = new SessionCollection(_SessionEnum);
     }
     catch (Exception ex)
     {
         System.Diagnostics.Trace.WriteLine(DateTime.Now);
         System.Diagnostics.Trace.WriteLine(ex);
     }
 }
Exemple #5
0
 internal AudioSessionManager(IAudioSessionManager2 realAudioSessionManager)
 {
     try
     {
         _AudioSessionManager = realAudioSessionManager;
         IAudioSessionEnumerator _SessionEnum;
         Marshal.ThrowExceptionForHR(_AudioSessionManager.GetSessionEnumerator(out _SessionEnum));
         _Sessions = new SessionCollection(_SessionEnum);
     }
     catch (Exception ex)
     {
         System.Diagnostics.Trace.WriteLine(DateTime.Now);
         System.Diagnostics.Trace.WriteLine(ex);
     }
 }