LandscapeSoundSoundFile Class Reference

#include <LandscapeSound.h>

Inheritance diagram for LandscapeSoundSoundFile:

LandscapeSoundSound

List of all members.

Public Member Functions

virtual bool readXML (XMLNode *node)
virtual bool play (VirtualSoundSource *source)

Protected Attributes

std::vector
< std::string
files
float gain
float referencedistance
float rolloff


Detailed Description

Definition at line 122 of file LandscapeSound.h.


Member Function Documentation

bool LandscapeSoundSoundFile::readXML ( XMLNode node  )  [virtual]

Implements LandscapeSoundSound.

Definition at line 212 of file LandscapeSound.cpp.

References S3D::checkDataFile(), XMLNode::failChildren(), file, files, gain, XMLNode::getNamedChild(), referencedistance, XMLNode::returnError(), and rolloff.

bool LandscapeSoundSoundFile::play ( VirtualSoundSource source  )  [virtual]

Implements LandscapeSoundSound.

Definition at line 232 of file LandscapeSound.cpp.

References Sound::fetchOrCreateBuffer(), file, files, gain, S3D::getDataFile(), Sound::instance(), VirtualSoundSource::play(), referencedistance, rolloff, VirtualSoundSource::setGain(), VirtualSoundSource::setReferenceDistance(), and VirtualSoundSource::setRolloff().


Member Data Documentation

std::vector<std::string> LandscapeSoundSoundFile::files [protected]

Definition at line 129 of file LandscapeSound.h.

Referenced by play(), and readXML().

float LandscapeSoundSoundFile::gain [protected]

Definition at line 130 of file LandscapeSound.h.

Referenced by play(), and readXML().

float LandscapeSoundSoundFile::referencedistance [protected]

Definition at line 131 of file LandscapeSound.h.

Referenced by play(), and readXML().

float LandscapeSoundSoundFile::rolloff [protected]

Definition at line 132 of file LandscapeSound.h.

Referenced by play(), and readXML().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:03 2009 for Scorched3D by  doxygen 1.5.3