public void Reset() { _segments.Clear(); _segments.Enqueue(new RecordSegmentInfo() { Index = 0, Length = TimeSpan.FromSeconds(TotalSeconds.GetAs <int>()), Recording = Recording }); }
public RecordSegmentInfo GetNextSegmentInfo() { RecordSegmentInfo result; do { result = LoopStrategy.GetNextSegmentInfo(); if (result == null) { _loopCount += 1; } } while (result == null && _loopCount < _loopCountTotal.GetAs <int>()); return(result); }