xoreos
0.0.5
|
Class to hold audio resource data of an ASCII representation of an XWB wavebank file. More...
#include <xactwavebank_ascii.h>
Classes | |
struct | Wave |
Public Member Functions | |
XACTWaveBank_ASCII (Common::SeekableReadStream *xwb) | |
~XACTWaveBank_ASCII () | |
const Common::UString & | getName () const |
Return the internal name of the WaveBank. More... | |
bool | isStreaming () const |
Is this WaveBank rating for streaming, or in-memory play? More... | |
size_t | getWaveCount () const |
Return the number of wave files. More... | |
RewindableAudioStream * | getWave (size_t index) const |
Return the audio stream of a wave. More... | |
Public Member Functions inherited from Sound::XACTWaveBank | |
virtual | ~XACTWaveBank () |
Private Member Functions | |
void | load (Common::SeekableReadStream &xwb) |
Private Attributes | |
Common::UString | _name |
bool | _streaming |
std::vector< Wave > | _waves |
Additional Inherited Members | |
Static Public Member Functions inherited from Sound::XACTWaveBank | |
static XACTWaveBank * | load (const Common::UString &name) |
Load an XACT WaveBank, of either ASCII or Binary format. More... | |
Class to hold audio resource data of an ASCII representation of an XWB wavebank file.
The non-Xbox versions of Jade Empire come with ASCII text files containing the meta-data part of the XWB files found in the Xbox version of the game. The actual sound files are plain Ogg Vorbis files in subdirectories.
To offer a unified interface for both variants of XWB, we treat the ASCII version as a wavebank managing the Ogg Vorbis files, just like the binary version manages its wave files.
See also xactwavebank_binary.h for the binary variant and xactwavebank.h for the abstract XACT WaveBank interface.
Definition at line 53 of file xactwavebank_ascii.h.
Sound::XACTWaveBank_ASCII::XACTWaveBank_ASCII | ( | Common::SeekableReadStream * | xwb | ) |
Definition at line 42 of file xactwavebank_ascii.cpp.
References load().
|
inline |
Definition at line 56 of file xactwavebank_ascii.h.
|
inlinevirtual |
Return the internal name of the WaveBank.
Implements Sound::XACTWaveBank.
Definition at line 59 of file xactwavebank_ascii.h.
References _name.
|
virtual |
Return the audio stream of a wave.
Implements Sound::XACTWaveBank.
Definition at line 54 of file xactwavebank_ascii.cpp.
References _waves, Common::UString::c_str(), Common::composeString(), Aurora::kFileTypeOGG, Sound::makeVorbisStream(), Sound::XACTWaveBank_ASCII::Wave::name, and ResMan.
|
virtual |
Return the number of wave files.
Implements Sound::XACTWaveBank.
Definition at line 50 of file xactwavebank_ascii.cpp.
References _waves.
|
inlinevirtual |
Is this WaveBank rating for streaming, or in-memory play?
Implements Sound::XACTWaveBank.
Definition at line 61 of file xactwavebank_ascii.h.
References _streaming.
|
private |
Definition at line 84 of file xactwavebank_ascii.cpp.
References _name, _streaming, _waves, Common::StreamTokenizer::addChunkEnd(), Common::StreamTokenizer::addIgnore(), Common::StreamTokenizer::addSeparator(), Common::UString::equalsIgnoreCase(), Sound::getFirst(), Common::FilePath::getStem(), Common::StreamTokenizer::getTokens(), Common::StreamTokenizer::kRuleIgnoreAll, Common::StreamTokenizer::nextChunk(), and Common::parseString().
Referenced by XACTWaveBank_ASCII().
|
private |
Definition at line 84 of file xactwavebank_ascii.h.
|
private |
Definition at line 85 of file xactwavebank_ascii.h.
Referenced by isStreaming(), and load().
|
private |
Definition at line 87 of file xactwavebank_ascii.h.
Referenced by getWave(), getWaveCount(), and load().