// Token: 0x0600001C RID: 28 RVA: 0x000054CC File Offset: 0x000036CC private void tagv1_CustomClick(object sender, EventArgs e, tagVersionInfo id3v2) { Form1 f = Application.OpenForms[0] as Form1; Form1.myID3v2tag = new ID3v2tag(f, Form1.file, id3v2.major, id3v2.presence); Form1.myID3v2tag.readID3v2(); base.Close(); }
public tagVersionInfo[] detectID3() { byte[] probe = new byte[2]; tagVersionInfo[] foundTags = new tagVersionInfo[3]; fs.Seek(-128, SeekOrigin.End); fs.Read(probe, 0, 3); if (probe.SequenceEqual(Globals.ID3v1signature)) { foundTags[0].presence = true; } //ID3v1 fs.Seek(0, SeekOrigin.Begin); fs.Read(probe, 0, 3); fs.Seek(3, SeekOrigin.Begin); if (probe.SequenceEqual(Globals.ID3v2signature)) { foundTags[1].presence = true; foundTags[1].major = Convert.ToInt32(fs.ReadByte()); } //ID3v2 front //fs.Seek(-3, SeekOrigin.End); !TODO //fs.Read(probe, 0, 3); //if (probe.SequenceEqual(Globals.ID3v2signature.Reverse())) { foundTags[2].presence = true; foundTags[2].major = 4; }//ID3v2 back fs.Seek(0, SeekOrigin.Begin); return(foundTags); }