xoreos
0.0.5
|
An abstract XACT WaveBank interface. More...
#include <xactwavebank.h>
Public Member Functions | |
virtual | ~XACTWaveBank () |
virtual const Common::UString & | getName () const =0 |
Return the internal name of the WaveBank. More... | |
virtual bool | isStreaming () const =0 |
Is this WaveBank rating for streaming, or in-memory play? More... | |
virtual size_t | getWaveCount () const =0 |
Return the number of wave files. More... | |
virtual RewindableAudioStream * | getWave (size_t index) const =0 |
Return the audio stream of a wave. More... | |
Static Public Member Functions | |
static XACTWaveBank * | load (const Common::UString &name) |
Load an XACT WaveBank, of either ASCII or Binary format. More... | |
An abstract XACT WaveBank interface.
This interface allows us to treat both binary and ASCII variants of the XWB file the same.
See also xactwavebank_binary.h for the original Xbox version of the XWB file and xactwavebank_ascii.h for the textual representation.
Definition at line 46 of file xactwavebank.h.
|
inlinevirtual |
Definition at line 48 of file xactwavebank.h.
|
pure virtual |
Return the internal name of the WaveBank.
Implemented in Sound::XACTWaveBank_Binary, and Sound::XACTWaveBank_ASCII.
|
pure virtual |
Return the audio stream of a wave.
Implemented in Sound::XACTWaveBank_Binary, and Sound::XACTWaveBank_ASCII.
|
pure virtual |
Return the number of wave files.
Implemented in Sound::XACTWaveBank_Binary, and Sound::XACTWaveBank_ASCII.
|
pure virtual |
Is this WaveBank rating for streaming, or in-memory play?
Implemented in Sound::XACTWaveBank_Binary, and Sound::XACTWaveBank_ASCII.
|
static |
Load an XACT WaveBank, of either ASCII or Binary format.
Definition at line 35 of file xactwavebank.cpp.
References Common::StackException::add(), Common::UString::c_str(), Aurora::kFileTypeTXT, Aurora::kFileTypeXWB, and ResMan.
Referenced by Engines::Jade::Game::run().