Esempio n. 1
0
        public void SetUp()
        {
            _uut = new CalculateTrack();
            List <Track> currentList = new List <Track>();

            _faketrackFormat = Substitute.For <TrackFormat>();
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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();
 }