public ShdrData(AByteArray aByteArray, List <string> aInformationList) { sampleName = aByteArray.ReadString(20); start = aByteArray.ReadUInt32(); end = aByteArray.ReadUInt32(); startLoop = aByteArray.ReadUInt32(); endLoop = aByteArray.ReadUInt32(); sampleRate = aByteArray.ReadUInt32(); originalPitch = aByteArray.ReadByte(); pitchCorrection = aByteArray.ReadSByte(); sampleLink = aByteArray.ReadUInt16(); sampleType = ( SampleType )aByteArray.ReadUInt16(); aInformationList.Add("Sample Name:" + sampleName); aInformationList.Add("Start:" + start); aInformationList.Add("End:" + end); aInformationList.Add("Start Loop:" + startLoop); aInformationList.Add("End Loop:" + endLoop); aInformationList.Add("Sample Rate:" + sampleRate); aInformationList.Add("Original Pitch:" + originalPitch); aInformationList.Add("Pitch Correction:" + pitchCorrection); aInformationList.Add("Sample Link:" + sampleLink); aInformationList.Add("Sample Type:" + sampleType); if (sampleType != SampleType.monoSample) { Logger.Warning(sampleName + "/" + "Not Mono Sample:" + sampleType); } }
public RiffWaveInst(string aId, UInt32 aSize, AByteArray aByteArray, RiffChunkList aParent) : base(aId, aSize, aByteArray, aParent) { unshiftedNote = aByteArray.ReadByte(); fineTune = aByteArray.ReadSByte(); gain = aByteArray.ReadSByte(); lowNote = aByteArray.ReadByte(); highNote = aByteArray.ReadByte(); lowVelocity = aByteArray.ReadByte(); highVelocity = aByteArray.ReadByte(); informationList.Add(" Unshifted Note:" + unshiftedNote); informationList.Add(" Fine Tune:" + fineTune); informationList.Add(" Gain:" + gain); informationList.Add(" Low Note:" + lowNote); informationList.Add(" High Note:" + highNote); informationList.Add(" Low Velocity:" + lowVelocity); informationList.Add(" High Velocity:" + highVelocity); }