Пример #1
0
        private void startRecording()
        {
            StartingRecordingTimerEvent(this, new TimerEventArgs(recordingBeatCounter, (recordingBeatCounter / m_beatsPerBar), (recordingBeatCounter % m_beatsPerBar) + 1));

            string[] rows = m_IntroductoryMessage.Split(',');

            if (rows.Length > 1)
            {
                int length = rows.Length;

                for (int i = 0; i < length; i = i + 2)
                {
                    ApplicationSpeech.speakText(rows[i]);
                    System.Threading.Thread.Sleep(Convert.ToInt32(rows[i + 1]));
                }
            }

            /*
             * ApplicationSpeech.speakText("Start Tapping");
             * System.Threading.Thread.Sleep(100);
             * ApplicationSpeech.speakText("1");
             * System.Threading.Thread.Sleep(200);
             * ApplicationSpeech.speakText("2");
             * System.Threading.Thread.Sleep(200);
             * ApplicationSpeech.speakText("3");
             * System.Threading.Thread.Sleep(200);
             * ApplicationSpeech.speakText("4");
             * System.Threading.Thread.Sleep(200);
             */
            if (m_UseMP3Music)
            {
                m_MP3PLayer.play();
            }

            //                ApplicationSpeech.speakText("Start Tapping");

            startRecordingTimer();
        }