Exemplo n.º 1
0
/*
        internal static RawFrame CreateV4Frame(string frameID, FrameOptions flags, byte[] payload)
        {
            var f = new RawFrameV4(frameID, flags, payload);
            return f;
        }
*/

        internal static RawFrame CreateFrame(string frameId, FrameOptions options, IList<byte> payload,
                                             TagVersion version)
        {
            RawFrame frame;
            switch (version)
            {
                case TagVersion.Id3V23:
                    frame = new RawFrameV3(frameId, options, payload);
                    break;
                case TagVersion.Id3V24:
                    frame = new RawFrameV4(frameId, options, payload);
                    break;
                default:
                    throw new Id3TagException("Unknown Tag Version found!");
            }

            return frame;
        }
Exemplo n.º 2
0
/*
        internal static RawFrame CreateV3Frame(string frameID, FrameOptions flags, byte[] payload)
        {
            var f = new RawFrameV3(frameID, flags, payload);
            return f;
        }
*/

        internal static RawFrame CreateV4Frame(string frameId, byte[] flags, byte[] payload)
        {
            var f = new RawFrameV4(frameId, flags, payload);
            return f;
        }