AudioSignalProblemOccurredEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Recognition / AudioSignalProblemOccurredEventArgs.cs / 1 / AudioSignalProblemOccurredEventArgs.cs

                            //------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------- 

 
using System; 

namespace System.Speech.Recognition 
{

    /// TODOC <_include file='doc\AudioStatusChangedEventArgs.uex' path='docs/doc[@for="AudioStatusChangedEventArgs"]/*' />
    // EventArgs used in the AudioSignalProblemOccurredEventArgs event. 

    public class AudioSignalProblemOccurredEventArgs : EventArgs 
    { 
        //*******************************************************************
        // 
        // Constructors
        //
        //*******************************************************************
 
        #region Constructors
 
        internal AudioSignalProblemOccurredEventArgs(AudioSignalProblem audioSignalProblem, int audioLevel, TimeSpan audioPosition, TimeSpan recognizerPosition) 
        {
            _audioSignalProblem = audioSignalProblem; 
            _audioLevel = audioLevel;
            _audioPosition = audioPosition;
            _recognizerPosition = recognizerPosition;
        } 

        #endregion 
 

 
        //********************************************************************
        //
        // Public Properties
        // 
        //*******************************************************************
 
        #region public Properties 

        /// TODOC 
        public AudioSignalProblem AudioSignalProblem
        {
            get { return _audioSignalProblem; }
        } 

        /// TODOC 
        public int AudioLevel 
        {
            get { return _audioLevel; } 
        }

        /// TODOC
        public TimeSpan AudioPosition 
        {
            get { return _audioPosition; } 
        } 

        /// TODOC 
        public TimeSpan RecognizerAudioPosition
        {
            get { return _recognizerPosition; }
        } 

        #endregion 
 

 
        //********************************************************************
        //
        // Private Fields
        // 
        //********************************************************************
 
        #region Private Fields 

        private AudioSignalProblem _audioSignalProblem; 
        private TimeSpan _recognizerPosition;
        private TimeSpan _audioPosition;
        private int _audioLevel;
 
        #endregion
 
    } 

} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK