public Equalizer CreateEqualizer() { if (equalizers == null) { LoadEqualizers(); } EqualizerRecord record = new EqualizerRecord(); Equalizer equalizer = new Equalizer(record); equalizer_container_record.Add(record); equalizers.Add(equalizer); return(equalizer); }
public void Read(BinaryReader reader) { byte[] header = reader.ReadBytes(8); headerId = BitConverter.ToInt32(header, 0); int headerSize = BitConverter.ToInt32(header, 4); byte[] remainder = reader.ReadBytes(headerSize - 8); unknownOne = BitConverter.ToInt32(remainder, 0); unknownTwo = BitConverter.ToInt32(remainder, 4); int numEq = BitConverter.ToInt32(remainder, 8); eqSize = BitConverter.ToInt32(remainder, 12); for (int i = 0; i < numEq; i++) { EqualizerRecord eqrec = new EqualizerRecord(); eqrec.Read(reader.ReadBytes(eqSize)); Add(eqrec); } }
internal Equalizer(EqualizerRecord record) { this.record = record; }
public void Add(EqualizerRecord record) { equalizers.Add(record); }
public void Remove(EqualizerRecord record) { equalizers.Remove(record); }
public void Add(EqualizerRecord record) { equalizers.Add (record); }
public void Remove(EqualizerRecord record) { equalizers.Remove (record); }
public void Read(BinaryReader reader) { byte[] header = reader.ReadBytes (8); headerId = BitConverter.ToInt32 (header, 0); int headerSize = BitConverter.ToInt32 (header, 4); byte[] remainder = reader.ReadBytes (headerSize - 8); unknownOne = BitConverter.ToInt32 (remainder, 0); unknownTwo = BitConverter.ToInt32 (remainder, 4); int numEq = BitConverter.ToInt32 (remainder, 8); eqSize = BitConverter.ToInt32 (remainder, 12); for (int i = 0; i < numEq; i++) { EqualizerRecord eqrec = new EqualizerRecord (); eqrec.Read (reader.ReadBytes (eqSize)); Add (eqrec); } }
public Equalizer CreateEqualizer() { if (equalizers == null) { LoadEqualizers (); } EqualizerRecord record = new EqualizerRecord (); Equalizer equalizer = new Equalizer (record); equalizer_container_record.Add (record); equalizers.Add (equalizer); return equalizer; }