コード例 #1
0
        public void StatusChanged(Recognizer.State status)
        {
            if (status == Recognizer.State.Allocated)
            {
                if (_showTimers)
                {
                    TimerPool.DumpAll();
                }
            }

            if (status == Recognizer.State.Deallocating)
            {
                if (_showTimers)
                {
                    TimerPool.DumpAll();
                }
            }

            if (status == Recognizer.State.Deallocated)
            {
                if (_showSummary)
                {
                    ShowAudioSummary();
                }
            }
        }