25 #ifndef AURORA_SSFFILE_H 26 #define AURORA_SSFFILE_H 37 class SeekableReadStream;
145 #endif // AURORA_SSFFILE_H void setStrRef(size_t index, uint32 strRef)
Set the string reference of the text to display for this sound.
Version determineVersionForGame(GameID game) const
Determine the best version to save this SSF file in, for the specified game.
const Common::UString & getSoundFile(size_t index) const
Return the sound file to play for this sound.
Version readSSFHeader(Common::SeekableReadStream &ssf, size_t &entryCount, size_t &offEntryTable)
Read the header of an SSF file and determine the version.
A class holding an UTF-8 string.
Class to hold a sound set.
size_t getMaxSoundFileLen() const
Return the maximum length of a sound filename in characters.
void setSoundFile(size_t index, const Common::UString &soundFile)
Set the sound file to play for this sound.
SSF V1.0, as found in NWN and NWN2.
void load(Common::SeekableReadStream &ssf)
uint32 strRef
StrRef of the text to display.
void writeSSF(Common::WriteStream &out, Version version) const
Write the SSF into a stream, as the specified version.
Common::UString soundFile
The name of the sound file to play.
Base for BioWare's Aurora engine files.
void writeKotOR(Common::WriteStream &out) const
Write this SSF into a stream as a V1.1 (KotOR/KotOR2).
static const uint32 kStrRefInvalid
SSF V1.1, as found in KotOR and KotOR.
Low-level type definitions to handle fixed width types portably.
Generic interface for a writable data stream.
void readEntriesKotOR(Common::SeekableReadStream &ssf)
Read the data entries of the KotOR version.
void readEntries(Common::SeekableReadStream &ssf, Version version, size_t offset)
Read the data entries, depending on the version.
void writeNWN2(Common::WriteStream &out) const
Write this SSF into a stream as a V1.1 (NWN2).
std::vector< Sound > SoundSet
Basic type definitions to handle files used in BioWare's Aurora engine.
Sound(const Common::UString &f="", uint32 s=kStrRefInvalid)
Base class for most files found in games using BioWare's Aurora engine.
void setSound(size_t index, const Common::UString &soundFile, uint32 strRef)
Set both the sound file and the string reference for this sound.
void checkVersionFeatures(Version version) const
Make sure this SSF files fits the requirements for specified SSF version.
SSF V1.1, as found in NWN2.
void readEntriesNWN(Common::SeekableReadStream &ssf, size_t soundFileLen)
Read the data entries of the NWN versions.
void getSound(size_t index, Common::UString &soundFile, uint32 &strRef) const
Return both the sound file and the string reference for this sound.
Interface for a seekable & readable data stream.
size_t getSoundCount() const
Return the number of sounds in this SSF file.
bool existNonASCIISoundFile() const
Is there a sound filename with non-ASCII characters?
uint32 getStrRef(size_t index) const
Return the string reference of the text to display for this sound.
void writeNWN(Common::WriteStream &out) const
Write this SSF into a stream as a V1.0 (NWN).