public void SetUp() { _uut = new CalculateTrack(); List <Track> currentList = new List <Track>(); _faketrackFormat = Substitute.For <TrackFormat>(); }
public virtual void Initialize(GenericMediaTrack cachedTrack) { track = cachedTrack; format = track.TrackFormat; stream = track.ParentStream; if (stream.IsForReading) { track.BlockWithSlice += new NextBlock(track_BlockWithSlice); track.TrackFormat.FetchNextBatch += new LazyRead(GetMoreBoxes); if ((writeCache == 0) && (readCache == 0)) { PrepareSampleInfo(0UL); // fill up the cache with first four blocks } } else { track.PrepareMediaHeaders += new SlicePutRequest(track_PrepareMediaHeaders); } }
public virtual void Initialize(GenericMediaTrack cachedTrack) { track = cachedTrack; format = track.TrackFormat; stream = track.ParentStream; if (stream.IsForReading) { track.BlockWithSlice += new NextBlock(track_BlockWithSlice); track.TrackFormat.FetchNextBatch += new LazyRead(GetMoreBoxes); if ((writeCache == 0) && (readCache == 0)) PrepareSampleInfo(0UL); // fill up the cache with first four blocks } else { track.PrepareMediaHeaders += new SlicePutRequest(track_PrepareMediaHeaders); } }
public CalculateTrack() { _oldTrackList = new List <Track>(); _updatedTrackList = new List <Track>(); _trackFormat = new TrackFormat(); }