コード例 #1
0
 public void Reset()
 {
     _segments.Clear();
     _segments.Enqueue(new RecordSegmentInfo()
     {
         Index     = 0,
         Length    = TimeSpan.FromSeconds(TotalSeconds.GetAs <int>()),
         Recording = Recording
     });
 }
コード例 #2
0
        public RecordSegmentInfo GetNextSegmentInfo()
        {
            RecordSegmentInfo result;

            do
            {
                result = LoopStrategy.GetNextSegmentInfo();
                if (result == null)
                {
                    _loopCount += 1;
                }
            } while (result == null && _loopCount < _loopCountTotal.GetAs <int>());
            return(result);
        }