A file in a sound bank.
Inheritance: IWwiseObject
Ejemplo n.º 1
0
        public void Visit(SoundBankFile file)
        {
            // Raise the FoundSoundBankFile event
            SoundFileEventArgs <SoundBankFile> args = new SoundFileEventArgs <SoundBankFile>(file, _currentEvent);

            OnFoundSoundBankFile(args);
        }
Ejemplo n.º 2
0
        private void ReadFiles(EndianReader reader, long blockSize)
        {
            long offset    = reader.Position;
            long endOffset = offset + blockSize;

            while (offset < endOffset)
            {
                // TODO: should we just read the file values here instead of in the SoundBankFile constructor?
                SoundBankFile file = new SoundBankFile(this, reader);
                offset += 0xC; // Each file entry is 0xC bytes long

                _filesById[file.ID] = file;
                _objects.Add(file);
            }
        }
Ejemplo n.º 3
0
        private void ReadFiles(EndianReader reader, long blockSize)
        {
            long offset = reader.Position;
            long endOffset = offset + blockSize;
            while (offset < endOffset)
            {
                // TODO: should we just read the file values here instead of in the SoundBankFile constructor?
                SoundBankFile file = new SoundBankFile(this, reader);
                offset += 0xC; // Each file entry is 0xC bytes long

                _filesById[file.ID] = file;
                _objects.Add(file);
            }
        }