25 #ifndef SOUND_WWISESOUNDBANK_H 26 #define SOUND_WWISESOUNDBANK_H 37 class RewindableAudioStream;
112 std::map<uint32, Common::UString>
_banks;
132 #endif // SOUND_WWISESOUNDBANK_H
A class holding an UTF-8 string.
std::map< uint32, Common::UString > _banks
const File & getFileStruct(size_t index) const
size_t offset
Offset of the file from the beginning of the data section.
Common::ScopedPtr< Common::SeekableReadStream > _bnk
size_t findFileByID(uint32 id) const
Return the index of a file from its ID, or SIZE_MAX if not found.
Class to hold audio resources and information of a Wwise soundbank file.
Common::SeekableReadStream * getFileData(size_t index) const
RewindableAudioStream * getFile(size_t index) const
A simple scoped smart pointer template.
std::map< uint32, size_t > _fileIDs
std::vector< Sound > _sounds
uint32 getSoundID(size_t index) const
Return the ID of a referenced sound.
size_t findSoundByID(uint32 id) const
Return the index of a sound from its ID, or SIZE_MAX if not found.
A rewindable audio stream.
Common::SeekableReadStream * getSoundData(size_t index) const
void load(Common::SeekableReadStream &bnk)
uint32 getSoundFileID(size_t index) const
Return the ID of a file used by a referenced sound.
uint32 getFileID(size_t index) const
Return the ID of an embedded file.
WwiseSoundBank(Common::SeekableReadStream *bnk)
Basic reading stream interfaces.
std::map< uint32, size_t > _soundIDs
size_t size
Size of the file in bytes.
bool isEmptyFile(size_t index) const
bool isEmptySound(size_t index) const
std::vector< File > _files
const Sound & getSoundStruct(size_t index) const
size_t getFileCount() const
Return the number of embedded files.
size_t getSoundCount() const
Return the number of sounds this bank references.
RewindableAudioStream * getSound(size_t index) const
Interface for a seekable & readable data stream.
An embedded sound file within the SoundBank.