public void ImportData(AwesomeReader ar) { // 280 bytes Indentifier = ar.ReadInt64(); SongType = ar.ReadInt32(); ar.ReadInt32(); // Should be zero. Title = ar.ReadInt64(); Artist = ar.ReadInt64(); Album = ar.ReadInt64(); Description = ar.ReadInt64(); LegendTag = ar.ReadInt64(); SongLength = ar.ReadSingle(); GuitarIntensity = ar.ReadSingle(); BassIntensity = ar.ReadSingle(); VoxIntensity = ar.ReadSingle(); EraTag = ar.ReadInt64(); Year = ar.ReadInt32(); ar.ReadInt32(); // Should be zero #region Vox Tuning VoxTuningName = ar.ReadInt64(); // Reads 1st string info. ar.ReadInt16(); VoxRealTuning1 = ar.ReadByte(); VoxOffsetTuning1 = ar.ReadByte(); // Reads 2nd string info. ar.ReadInt16(); VoxRealTuning2 = ar.ReadByte(); VoxOffsetTuning2 = ar.ReadByte(); // Reads 3rd string info. ar.ReadInt16(); VoxRealTuning3 = ar.ReadByte(); VoxOffsetTuning3 = ar.ReadByte(); // Reads 4th string info. ar.ReadInt16(); VoxRealTuning4 = ar.ReadByte(); VoxOffsetTuning4 = ar.ReadByte(); // Reads 5th string info. ar.ReadInt16(); VoxRealTuning5 = ar.ReadByte(); VoxOffsetTuning5 = ar.ReadByte(); // Reads 6th string info. ar.ReadInt16(); VoxRealTuning6 = ar.ReadByte(); VoxOffsetTuning6 = ar.ReadByte(); ar.ReadInt64(); // Should be zero'd #endregion #region Guitar Tuning GuitarTuningName = ar.ReadInt64(); // Reads 1st string info. ar.ReadInt16(); GuitarRealTuning1 = ar.ReadByte(); GuitarOffsetTuning1 = ar.ReadByte(); // Reads 2nd string info. ar.ReadInt16(); GuitarRealTuning2 = ar.ReadByte(); GuitarOffsetTuning2 = ar.ReadByte(); // Reads 3rd string info. ar.ReadInt16(); GuitarRealTuning3 = ar.ReadByte(); GuitarOffsetTuning3 = ar.ReadByte(); // Reads 4th string info. ar.ReadInt16(); GuitarRealTuning4 = ar.ReadByte(); GuitarOffsetTuning4 = ar.ReadByte(); // Reads 5th string info. ar.ReadInt16(); GuitarRealTuning5 = ar.ReadByte(); GuitarOffsetTuning5 = ar.ReadByte(); // Reads 6th string info. ar.ReadInt16(); GuitarRealTuning6 = ar.ReadByte(); GuitarOffsetTuning6 = ar.ReadByte(); ar.ReadInt64(); // Should be zero'd #endregion #region Bass Tuning BassTuningName = ar.ReadInt64(); // Reads 1st string info. ar.ReadInt16(); BassRealTuning1 = ar.ReadByte(); BassOffsetTuning1 = ar.ReadByte(); // Reads 2nd string info. ar.ReadInt16(); BassRealTuning2 = ar.ReadByte(); BassOffsetTuning2 = ar.ReadByte(); // Reads 3rd string info. ar.ReadInt16(); BassRealTuning3 = ar.ReadByte(); BassOffsetTuning3 = ar.ReadByte(); // Reads 4th string info. ar.ReadInt16(); BassRealTuning4 = ar.ReadByte(); BassOffsetTuning4 = ar.ReadByte(); // Reads 5th string info. ar.ReadInt16(); BassRealTuning5 = ar.ReadByte(); BassOffsetTuning5 = ar.ReadByte(); // Reads 6th string info. ar.ReadInt16(); BassRealTuning6 = ar.ReadByte(); BassOffsetTuning6 = ar.ReadByte(); ar.ReadInt64(); // Should be zero'd #endregion // Reads labels. int count = ar.ReadInt32(); int offset = ar.ReadInt32(); long previousPosition = ar.BaseStream.Position; ar.BaseStream.Position += offset - 4; for (int i = 0; i < count; i++) { Labels.Add(ar.ReadInt64()); } ar.BaseStream.Position = previousPosition; LickPath = ar.ReadInt64(); TexturePath = ar.ReadInt64(); PreviewPath = ar.ReadInt64(); // Reads technique tags. count = ar.ReadInt32(); offset = ar.ReadInt32(); previousPosition = ar.BaseStream.Position; ar.BaseStream.Position += offset - 4; for (int i = 0; i < count; i++) { TechniqueTags.Add(ar.ReadInt64()); } ar.BaseStream.Position = previousPosition; // Reads genre tags. count = ar.ReadInt32(); offset = ar.ReadInt32(); previousPosition = ar.BaseStream.Position; ar.BaseStream.Position += offset - 4; for (int i = 0; i < count; i++) { GenreTags.Add(ar.ReadInt64()); } ar.BaseStream.Position = previousPosition; ar.BaseStream.Position += 24; }
protected override void ImportData(AwesomeReader ar) { Title = ar.ReadInt64(); Artist = ar.ReadInt64(); Description = ar.ReadInt64(); Album = ar.ReadInt64(); TexturePath = ar.ReadInt64(); LegendTag = ar.ReadInt64(); EraTag = ar.ReadInt64(); Year = ar.ReadInt32(); GuitarIntensity = ar.ReadSingle(); BassIntensity = ar.ReadSingle(); VoxIntensity = ar.ReadSingle(); // Reads technique tags. int count = ar.ReadInt32(); int offset = ar.ReadInt32(); long previousPosition = ar.BaseStream.Position; ar.BaseStream.Position += offset - 4; for (int i = 0; i < count; i++) { TechniqueTags.Add(ar.ReadInt64()); } ar.BaseStream.Position = previousPosition; // Reads genre tags. count = ar.ReadInt32(); offset = ar.ReadInt32(); previousPosition = ar.BaseStream.Position; ar.BaseStream.Position += offset - 4; for (int i = 0; i < count; i++) { GenreTags.Add(ar.ReadInt64()); } ar.BaseStream.Position = previousPosition; // Reads labels. count = ar.ReadInt32(); offset = ar.ReadInt32(); previousPosition = ar.BaseStream.Position; ar.BaseStream.Position += offset - 4; for (int i = 0; i < count; i++) { Labels.Add(ar.ReadInt64()); } ar.BaseStream.Position = previousPosition; SongLength = ar.ReadSingle(); ar.ReadInt32(); // Should be zero PreviewPath = ar.ReadInt64(); VideoPath = ar.ReadInt64(); ar.ReadInt64(); // Should be zero // Reads instrument paths. count = ar.ReadInt32(); offset = ar.ReadInt32(); previousPosition = ar.BaseStream.Position; ar.BaseStream.Position += offset - 4; for (int i = 0; i < count; i++) { InstrumentPaths.Add(ar.ReadInt64()); } // Reads audio paths ar.BaseStream.Position = previousPosition; BackingAudioPath = ar.ReadInt64(); BassAudioPath = ar.ReadInt64(); DrumsAudioPath = ar.ReadInt64(); Guitar1AudioPath = ar.ReadInt64(); Guitar2AudioPath = ar.ReadInt64(); VoxAudioPath = ar.ReadInt64(); }