Esempio n. 1
0
        public async void StopRecord()
        {
            string filename = (this.exerciceFolderPath + "resultat" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".txt");

            if (!Player.IsRecording)
            {
                return;
            }

            var wavPath = lastExerciceWavPath = await Player.StopRecord();

            CurrentActivity.Example_wav_path = wavPath;
        }
Esempio n. 2
0
        public async void StopRecord()
        {
            string filename = (this.exerciceFolderPath + "resultat" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".txt");

            if (!Player.IsRecording)
            {
                return;
            }

            var wavPath = lastExerciceWavPath = await Player.StopRecord();

            this.CurrentActivity.Results = CalculateIntensityAndFrequency(wavPath, this.exerciceFolderPath + filename);
        }