public SoundBankFile(SoundBank parent, EndianReader reader) { ParentBank = parent; ID = reader.ReadUInt32(); Offset = reader.ReadInt32(); Size = reader.ReadInt32(); }
public SoundBankFile(SoundBank parent, uint id, int offset, int size) { ParentBank = parent; ID = id; Offset = offset; Size = size; }
/// <summary> /// Scans a SoundBankEvent for sound files. /// </summary> /// <param name="bank">The SoundBank that the event belongs to.</param> /// <param name="ev">The SoundBankEvent to scan.</param> public void ScanEvent(SoundBank bank, SoundBankEvent ev) { _currentBank = bank; Visit(ev); }
/// <summary> /// Registers a sound bank with the scanner. /// </summary> /// <param name="bank">A sound bank which sounds can be loaded from.</param> public void RegisterSoundBank(SoundBank bank) { _soundBanks[bank.ID] = bank; }