Beispiel #1
0
        private void PlayEnd3s(XSentence sentence)
        {
            var time = sentence.EndTime.Add(TimeSpan.FromSeconds(-1.5));

            if (sentence.BeginTime > time)
            {
                time = sentence.BeginTime;
            }

            this.AudioPlayer.PlayRange(time, sentence.EndTime);
        }
Beispiel #2
0
        private void PlayBegin3s(XSentence sentence)
        {
            var time = sentence.BeginTime.Add(TimeSpan.FromSeconds(3));

            if (sentence.EndTime < time)
            {
                time = sentence.EndTime;
            }

            this.AudioPlayer.PlayRange(sentence.BeginTime, time);
        }