Ejemplo n.º 1
0
 public SoundBankFile(SoundBank parent, EndianReader reader)
 {
     ParentBank = parent;
     ID = reader.ReadUInt32();
     Offset = reader.ReadInt32();
     Size = reader.ReadInt32();
 }
Ejemplo n.º 2
0
 public SoundBankFile(SoundBank parent, uint id, int offset, int size)
 {
     ParentBank = parent;
     ID = id;
     Offset = offset;
     Size = size;
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 /// <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;
 }