55     if (index >= 
_waves.size())
    56         throw Common::Exception(
"XACTWaveBank_ASCII::getWave(): Index out of range (%s >= %s)",
    69     throw Common::Exception(
"XACTWaveBank_ASCII::getWave(): Vorbis decoding disabled when building without libvorbis");
    74     std::vector<Common::UString> strings;
    98     for (std::vector<Wave>::iterator w = 
_waves.begin(); w != 
_waves.end(); ++w) {
    99         std::vector<Common::UString> strings;
   102         if (strings.size() != 8)
   106         w->type = strings[0];
   117         w->bitRate = (w->bitRate / w->channels) * 8;
 std::vector< Wave > _waves
 
#define ResMan
Shortcut for accessing the sound manager. 
 
XACTWaveBank_ASCII(Common::SeekableReadStream *xwb)
 
size_t getWaveCount() const
Return the number of wave files. 
 
A class holding an UTF-8 string. 
 
UString composeString(T value)
Convert any POD integer, float/double or bool type into a string. 
 
RewindableAudioStream * getWave(size_t index) const
Return the audio stream of a wave. 
 
bool equalsIgnoreCase(const UString &str) const
 
void addChunkEnd(uint32 c)
Add a character marking the end of a chunk. 
 
Utility templates and functions for working with strings and streams. 
 
Exception that provides a stack of explanations. 
 
A simple scoped smart pointer template. 
 
void load(Common::SeekableReadStream &xwb)
 
Basic exceptions to throw. 
 
A rewindable audio stream. 
 
const char * c_str() const
Return the (utf8 encoded) string data. 
 
RewindableAudioStream * makeVorbisStream(Common::SeekableReadStream *stream, bool disposeAfterUse)
Create a new RewindableAudioStream from the Ogg Vorbis data in the given stream. 
 
void addIgnore(uint32 c)
Add a character to ignore. 
 
static Common::UString getFirst(Common::StreamTokenizer &tokenizer, Common::SeekableReadStream &stream)
 
Basic reading stream interfaces. 
 
Common::UString name
Name of the wave resource. 
 
size_t getTokens(SeekableReadStream &stream, std::vector< UString > &list, size_t min=0, size_t max=SIZE_MAX, const UString &def="")
Parse tokens out of the stream. 
 
static UString getStem(const UString &p)
Return a file name's stem. 
 
Parse tokens out of a stream. 
 
void nextChunk(SeekableReadStream &stream)
Skip past end of chunk characters. 
 
Ignore all repeated separators. 
 
void addSeparator(uint32 c)
Add a character on where to split tokens. 
 
An ASCII XACT WaveBank, found in the non-Xbox versions of Jade Empire as _xwb.txt files...
 
Interface for a seekable & readable data stream. 
 
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type. 
 
The global resource manager for Aurora resources. 
 
Utility class for manipulating file paths.