void TagTestWithSave(ref File file, MemoryFileAbstraction abst, TagTestFunc testFunc) { testFunc(file.Tag, "Before Save"); file.Save(); file = new File(abst); testFunc(file.Tag, "After Save"); }
void TagTestWithSave(ref TagLib.Mpeg4.File file, MemoryFileAbstraction abst, TagTestFunc testFunc) { testFunc(file.GetTag(TagTypes.Apple), "Before Save"); file.Save(); // Console.WriteLine (); // Extras.DumpHex ((abst.ReadStream as System.IO.MemoryStream).ToArray ()); file = new TagLib.Mpeg4.File(abst, ReadStyle.None); testFunc(file.GetTag(TagTypes.Apple), "After Save"); }
private Mpeg4.File CreateFile(out MemoryFileAbstraction abst) { byte [] data = new byte [] { 0x00, 0x00, 0x00, 0x18, 0x66, 0x74, 0x79, 0x70, 0x6d, 0x70, 0x34, 0x32, 0x00, 0x00, 0x00, 0x00, 0x6d, 0x70, 0x34, 0x32, 0x69, 0x73, 0x6f, 0x6d, 0x00, 0x00, 0x00, 0x08, 0x6d, 0x6f, 0x6f, 0x76 }; abst = new MemoryFileAbstraction(0xffff, data); return(new Mpeg4.File(abst, ReadStyle.None)); }
private Asf.File CreateFile(out MemoryFileAbstraction abst) { byte [] data = new byte [] { 0x30, 0x26, 0xb2, 0x75, 0x8e, 0x66, 0xcf, 0x11, 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb5, 0x03, 0xbf, 0x5f, 0x2e, 0xa9, 0xcf, 0x11, 0x8e, 0xe3, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0xd2, 0xd3, 0xab, 0xba, 0xa9, 0xcf, 0x11, 0x8e, 0xe6, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00 }; abst = new MemoryFileAbstraction(0xffff, data); return(new Asf.File(abst)); }
private void TagTestWithSave(ref Asf.File file, MemoryFileAbstraction abst, TagTestFunc testFunc) { testFunc (file.Tag, "Before Save"); file.Save (); file = new Asf.File (abst); testFunc (file.Tag, "After Save"); }
private Asf.File CreateFile(out MemoryFileAbstraction abst) { byte [] data = new byte [] { 0x30, 0x26, 0xb2, 0x75, 0x8e, 0x66, 0xcf, 0x11, 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb5, 0x03, 0xbf, 0x5f, 0x2e, 0xa9, 0xcf, 0x11, 0x8e, 0xe3, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65, 0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0xd2, 0xd3, 0xab, 0xba, 0xa9, 0xcf, 0x11, 0x8e, 0xe6, 0x00, 0xc0, 0x0c, 0x20, 0x53, 0x65, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00 }; abst = new MemoryFileAbstraction (0xffff, data); return new Asf.File (abst); }
private void TagTestWithSave (ref Mpeg4.File file, MemoryFileAbstraction abst, TagTestFunc testFunc) { testFunc (file.GetTag (TagTypes.Apple), "Before Save"); file.Save (); // Console.WriteLine (); // Extras.DumpHex ((abst.ReadStream as System.IO.MemoryStream).ToArray ()); file = new Mpeg4.File (abst, ReadStyle.None); testFunc (file.GetTag (TagTypes.Apple), "After Save"); }
private Mpeg4.File CreateFile (out MemoryFileAbstraction abst) { byte [] data = new byte [] { 0x00, 0x00, 0x00, 0x18, 0x66, 0x74, 0x79, 0x70, 0x6d, 0x70, 0x34, 0x32, 0x00, 0x00, 0x00, 0x00, 0x6d, 0x70, 0x34, 0x32, 0x69, 0x73, 0x6f, 0x6d, 0x00, 0x00, 0x00, 0x08, 0x6d, 0x6f, 0x6f, 0x76 }; abst = new MemoryFileAbstraction (0xffff, data); return new Mpeg4.File (abst, ReadStyle.None); }