51 for (Aurora::GFF3List::const_iterator c = soundFileList.begin(); c != soundFileList.end(); ++c) {
57 _random = gff.getBool(
"Random");
70 _name = gff.getString(
"Tag");
72 if (gff.getBool(
"Active")) {
77 static_cast<float>(sound.
getDouble(
"XPosition")),
78 static_cast<float>(sound.
getDouble(
"YPosition")),
79 static_cast<float>(sound.
getDouble(
"ZPosition"))
82 SoundMan.setChannelGain(
_sound, static_cast<float>(gff.getUint(
"Volume"))/100.0f);
87 static_cast<float>(gff.getDouble(
"MinDistance")),
88 static_cast<float>(gff.getDouble(
"MaxDistance"))
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
#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.
std::vector< Common::UString > _soundFiles
A class holding an UTF-8 string.
void reset(PointerType o=0)
Resets the pointer with the new value.
An ingame sound in kotor.
Aurora::GFF3File * loadOptionalGFF3(const Common::UString &gff3, Aurora::FileType type, uint32 id, bool repairNWNPremium)
Load a GFF3, but return 0 instead of throwing on error.
Sound template (user), GFF.
Sound::ChannelHandle _sound
const char * c_str() const
Return the (utf8 encoded) string data.
Common::UString _name
The object's display name.
double getDouble(const Common::UString &field, double def=0.0) const
void setPosition(float x, float y, float z)
Set the object's position within its area.
The global sound manager, handling all sound output.
bool empty() const
Is the string empty?
#define SoundMan
Shortcut for accessing the sound manager.
std::vector< const GFF3Struct * > GFF3List
virtual void setPosition(float x, float y, float z)
Set the object's position within its area.
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
Generic Aurora engines utility functions.
Interface for a seekable & readable data stream.
SoundObject(const Aurora::GFF3Struct &sound)
The global resource manager for Aurora resources.