70 for (
uint32 i = 0; i < numWaveBanks; ++i) {
76 switch (streamingType) {
97 for (
uint32 i = 0; i < numEventGroups; ++i) {
102 std::vector<SoundDefinition> definitions(numSoundDefinitionTemplates);
103 for (
uint32 i = 0; i < numSoundDefinitionTemplates; ++i) {
107 definitions[i].maximumSpawnedSounds = fev.
readUint32LE();
123 for (
uint32 i = 0; i < numSoundDefinitions; ++i) {
130 definition.
name = name;
146 for (
uint32 i = 0; i < numSubCategories; ++i) {
162 for (
uint32 i = 0; i < numSubEventCategories; ++i) {
166 for (
uint32 i = 0; i < numEvents; ++i) {
225 std::map<Common::UString, FEVFile::Property> properties;
226 for (
uint32 i = 0; i < numUserProperties; ++i) {
230 switch (property.
type) {
244 properties.insert(std::make_pair(propertyName, property));
PropertyType
Possible Property types.
void readEventCategory(Common::SeekableReadStream &fev)
Read a category for events.
#define ResMan
Shortcut for accessing the sound manager.
#define MKTAG(a0, a1, a2, a3)
A wrapper macro used around four character constants, like 'DATA', to ensure portability.
uint32 readUint32LE()
Read an unsigned 32-bit word stored in little endian (LSB first) order from the stream and return it...
const std::vector< Category > & getCategories()
A class holding an UTF-8 string.
Some objects in FMOD can have generic properties.
std::vector< SoundDefinition > _definitions
Low-level macros and functions to handle different endianness portably.
Common::UString _bankName
FORCEINLINE int32 readSint32LE()
Read a signed 32-bit word stored in little endian (LSB first) order from the stream and return it...
A category which is organized hierarchically.
const char * c_str() const
Return the (utf8 encoded) string data.
StreamingType streamingType
virtual size_t skip(ptrdiff_t offset)
Skip the specified number of bytes, adding that offset to the current position in the stream...
A loader for FEV (FMOD Event) files.
Reference to an external wave bank.
std::map< Common::UString, Property > readProperties(Common::SeekableReadStream &fev)
Read properties.
std::vector< Category > _categories
FEVFile(const Common::UString &resRef)
std::vector< Event > _events
std::vector< WaveBank > _waveBanks
uint32 readUint32BE()
Read an unsigned 32-bit word stored in big endian (MSB first) order from the stream and return it...
FORCEINLINE float readIEEEFloatLE()
Read a 32-bit IEEE float stored in little endian (LSB first) order from the stream and return it...
Plain, unextended ASCII (7bit clean).
static const uint32 kFEVID
Common::UString readLengthPrefixedString(Common::SeekableReadStream &fev)
Read an FEV length prefixed string.
void load(Common::SeekableReadStream &fev)
const std::vector< WaveBank > & getWaveBanks()
UString readStringFixed(SeekableReadStream &stream, Encoding encoding, size_t length)
Read length bytes as a string with the given encoding out of a stream.
void readCategory(Common::SeekableReadStream &fev)
Read a general category.
PlayMode
Possible Play modes.
Interface for a seekable & readable data stream.
const Common::UString & getBankName()
The global resource manager for Aurora resources.
void readEvent(Common::SeekableReadStream &fev)
Read an event.