Exemple #1
0
 private void SetTIPL(FrameFlagSet ffs, byte[] data)
 {
     if (this._personsFrames.TIPL == null)
     {
         this._personsFrames.TIPL = new PersonListTextFrame();
     }
     this._personsFrames.TIPL.AddData(ffs, data);
 }
Exemple #2
0
        private void SetUSLT(FrameFlagSet ffs, byte[] data)
        {
            UnsunchTextFrame frame = new UnsunchTextFrame(ffs, data);

            if (this._USLT == null || this._USLT.Length == 0)
            {
                this._USLT = new UnsunchTextFrame[] { frame };
            }
            else
            {
                this._USLT = Generic.Add(this._USLT, frame);
            }
        }
Exemple #3
0
        private void SetCOMM(FrameFlagSet ffs, byte[] data)
        {
            UnsunchTextFrame frame = new UnsunchTextFrame(ffs, data);

            if (this._COMM == null || this._COMM.Length == 0)
            {
                this._COMM = new UnsunchTextFrame[] { frame };
            }
            else
            {
                this._COMM = Generic.Add(this._COMM, frame);
            }
        }
Exemple #4
0
        private void SetAPIC(FrameFlagSet ffs, byte[] data)
        {
            AttachedPictureFrame frame = new AttachedPictureFrame(ffs, data);

            if (this._APIC == null || this._APIC.Length == 0)
            {
                this._APIC = new AttachedPictureFrame[] { frame };
            }
            else
            {
                this._APIC = Generic.Add(this._APIC, frame);
            }
        }
Exemple #5
0
        private void SetPRIV(FrameFlagSet ffs, byte[] data)
        {
            PrivateFrame frame = new PrivateFrame(ffs, data);

            if (this._PRIV == null || this._PRIV.Length == 0)
            {
                this._PRIV = new PrivateFrame[] { frame };
            }
            else
            {
                this._PRIV = Generic.Add(this._PRIV, frame);
            }
        }
Exemple #6
0
        // Other frames
        private void SetUFID(FrameFlagSet ffs, byte[] data)
        {
            UniqueFileIdentifierFrame frame = new UniqueFileIdentifierFrame(ffs, data);

            if (this._UFID == null || this._UFID.Length == 0)
            {
                this._UFID = new UniqueFileIdentifierFrame[] { frame };
            }
            else
            {
                this._UFID = Generic.Add(this._UFID, frame);
            }
        }
Exemple #7
0
        internal void ReadFrame(ID3V2 tag, byte[] tagArray, int pointPosition)
        {
            _pointPosition = pointPosition;
            byte[] _id  = new byte[4];
            byte[] size = new byte[4];


            GetIdentificator(tagArray, _id);
            AdjustTagID();
            GetFrameSize(tagArray, size, tag.Header.TagVersion);
            if (FindId())
            {
                GetFlagsField(tagArray);
                _flagSet        = new FrameFlagSet(_flags);
                _pointPosition += _flagSet.GetExtraData(tagArray, _pointPosition);
                GetDataValue(tagArray);
                SetValueIntoTag(tag);
            }
            else
            {
                _pointPosition += this.FrameSize;
            }
        }
Exemple #8
0
        private void SetTOPE(FrameFlagSet ffs, byte[] data)
        {
            TextInfoFrame frame = new TextInfoFrame(ffs, data);

            this._personsFrames.TOPE = frame;
        }
Exemple #9
0
        private void SetWXXX(FrameFlagSet ffs, byte[] data)
        {
            UserDefinedUrlFrame frame = new UserDefinedUrlFrame(ffs, data);

            this.UrlFrames.AddWXXX(frame);
        }
Exemple #10
0
        private void SetTPOS(FrameFlagSet ffs, byte[] data)
        {
            PositionFrame frame = new PositionFrame(ffs, data);

            this._identificationFrames.TPOS = frame;
        }
Exemple #11
0
        // Identification frames
        private void SetTIT1(FrameFlagSet ffs, byte[] data)
        {
            TextInfoFrame frame = new TextInfoFrame(ffs, data);

            this._identificationFrames.TIT1 = frame;
        }
Exemple #12
0
        private void SetTMOO(FrameFlagSet ffs, byte[] data)
        {
            TextInfoFrame frame = new TextInfoFrame(ffs, data);

            this._deliveredFrames.TMOO = frame;
        }
Exemple #13
0
        private void SetTCON(FrameFlagSet ffs, byte[] data)
        {
            ContentTypeFrame frame = new ContentTypeFrame(ffs, data);

            this._deliveredFrames.TCON = frame;
        }
Exemple #14
0
        private void SetTDLY(FrameFlagSet ffs, byte[] data)
        {
            NumericStringFrame frame = new NumericStringFrame(ffs, data);

            this._otherFrames.TDLY = frame;
        }
Exemple #15
0
        private void SetTRSO(FrameFlagSet ffs, byte[] data)
        {
            TextInfoFrame frame = new TextInfoFrame(ffs, data);

            this._licensesFrames.TRSO = frame;
        }
Exemple #16
0
        private void SetTDTG(FrameFlagSet ffs, byte[] data)
        {
            DateInfoFrame frame = new DateInfoFrame(ffs, data);

            this._otherFrames.TDTG = frame;
        }
Exemple #17
0
        private void SetMCDI(FrameFlagSet ffs, byte[] data)
        {
            MusicIdFrame frame = new MusicIdFrame(ffs, data);

            this._MCDI = frame;
        }
Exemple #18
0
        private void SetTLEN(FrameFlagSet ffs, byte[] data)
        {
            NumericStringFrame frame = new NumericStringFrame(ffs, data);

            this._deliveredFrames.TLEN = frame;
        }
Exemple #19
0
        private void SetWPUB(FrameFlagSet ffs, byte[] data)
        {
            UrlFrame frame = new UrlFrame(ffs, data);

            this.UrlFrames.WPUB = frame;
        }
Exemple #20
0
        private void SetWOAR(FrameFlagSet ffs, byte[] data)
        {
            UrlFrame frame = new UrlFrame(ffs, data);

            this.UrlFrames.AddWOAR(frame);
        }
Exemple #21
0
        private void SetTXXX(FrameFlagSet ffs, byte[] data)
        {
            UserDefinedTextFrame frame = new UserDefinedTextFrame(ffs, data);

            this._otherFrames.AddTXXX(frame);
        }
Exemple #22
0
        private void SetTSOT(FrameFlagSet ffs, byte[] data)
        {
            TextInfoFrame frame = new TextInfoFrame(ffs, data);

            this._otherFrames.TSOT = frame;
        }