Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <SoundData.h>
Public Member Functions | |
f32 | getGain () const |
Returns the gain. | |
f32 | getInnerConeAngle () const |
Return the innerConeAngle. | |
f32 | getMaxDistance () const |
Returns the max distance. | |
f32 | getMinDistance () const |
Returns the min distance. | |
f32 | getOuterConeAngle () const |
Returns the outerConeAngle. | |
f32 | getOuterConeGain () const |
Returns the outerConeGain. | |
f32 | getPitch () const |
Returns the pitch multiplier. | |
void | setConeSettings (f32 innerConeAngle, f32 outerConeAngle, f32 outerConeGain) |
void | setDistanceValues (f32 minDistance, f32 maxDistance) |
void | setGain (f32 gain) |
Sets the gain. | |
void | setInnerConeAngle (f32 innerConeAngle) |
Sets the inner angle of the sound cone for a directional sound. | |
void | setMaxDistance (f32 maxDistance) |
Sets the Max Distance. | |
void | setMinDistance (f32 minDistance) |
Sets the Min Distance. | |
void | setOuterConeAngle (f32 outerConeAngle) |
Sets the outer angle of the sound cone for a directional sound. | |
void | setOuterConeGain (f32 outerConeGain) |
Sets the gain outside the sound cone of a directional sound. | |
void | setPitch (f32 pitch) |
Sets the pitch multiplier. | |
SoundData (const std::string &name, resource::Serializer *serializer) | |
virtual | ~SoundData () |
Protected Member Functions | |
void | initProperties () |
virtual void | unloadImpl () |
Protected Attributes | |
f32 | mGain |
f32 | mInnerConeAngle |
f32 | mMaxDistance |
f32 | mMinDistance |
f32 | mOuterConeAngle |
f32 | mOuterConeGain |
f32 | mPitch |
Defines a sound data resource. Author: Kat'Oun version: 1.0
sound::SoundData::SoundData | ( | const std::string & | name, |
resource::Serializer * | serializer | ||
) |
sound::SoundData::~SoundData | ( | ) | [virtual] |
f32 sound::SoundData::getGain | ( | ) | const |
f32 sound::SoundData::getInnerConeAngle | ( | ) | const |
Return the innerConeAngle.
References mInnerConeAngle.
Referenced by sound::Sound::resourceLoaded().
f32 sound::SoundData::getMaxDistance | ( | ) | const |
f32 sound::SoundData::getMinDistance | ( | ) | const |
f32 sound::SoundData::getOuterConeAngle | ( | ) | const |
Returns the outerConeAngle.
References mOuterConeAngle.
Referenced by sound::Sound::resourceLoaded().
f32 sound::SoundData::getOuterConeGain | ( | ) | const |
f32 sound::SoundData::getPitch | ( | ) | const |
void sound::SoundData::initProperties | ( | ) | [protected] |
Reimplemented from resource::Resource.
References ENGINE_UNIT, mGain, mInnerConeAngle, mMaxDistance, mMinDistance, mOuterConeAngle, mOuterConeGain, and mPitch.
Referenced by SoundData().
void sound::SoundData::setConeSettings | ( | f32 | innerConeAngle, |
f32 | outerConeAngle, | ||
f32 | outerConeGain | ||
) |
Sets the variables used in the sound projection cone.
innerConeAngle,: | The inside cone angle. |
outerConeAngle,: | The outside cone angle. |
outerConeGain,: | The outer cone gain. |
References setInnerConeAngle(), setOuterConeAngle(), and setOuterConeGain().
Sets the variables used in the distance attenuation calculation.
minDistance,: | The min distance that the sound emitter will cease to continue growing louder at (as it approaches the listener). |
maxDistance,: | The max distance a sound stops attenuating at. |
References setMaxDistance(), and setMinDistance().
void sound::SoundData::setInnerConeAngle | ( | f32 | innerConeAngle | ) |
Sets the inner angle of the sound cone for a directional sound.
References mInnerConeAngle.
Referenced by setConeSettings().
void sound::SoundData::setMaxDistance | ( | f32 | maxDistance | ) |
void sound::SoundData::setMinDistance | ( | f32 | minDistance | ) |
void sound::SoundData::setOuterConeAngle | ( | f32 | outerConeAngle | ) |
Sets the outer angle of the sound cone for a directional sound.
References mOuterConeAngle.
Referenced by setConeSettings().
void sound::SoundData::setOuterConeGain | ( | f32 | outerConeGain | ) |
Sets the gain outside the sound cone of a directional sound.
References mOuterConeGain.
Referenced by setConeSettings().
void sound::SoundData::unloadImpl | ( | ) | [protected, virtual] |
Reimplemented from resource::Resource.
References ENGINE_UNIT, mGain, mInnerConeAngle, mMaxDistance, mMinDistance, mOuterConeAngle, mOuterConeGain, and mPitch.
f32 sound::SoundData::mGain [protected] |
Referenced by getGain(), initProperties(), setGain(), and unloadImpl().
f32 sound::SoundData::mInnerConeAngle [protected] |
Referenced by getInnerConeAngle(), initProperties(), setInnerConeAngle(), and unloadImpl().
f32 sound::SoundData::mMaxDistance [protected] |
Referenced by getMaxDistance(), initProperties(), setMaxDistance(), and unloadImpl().
f32 sound::SoundData::mMinDistance [protected] |
Referenced by getMinDistance(), initProperties(), setMinDistance(), and unloadImpl().
f32 sound::SoundData::mOuterConeAngle [protected] |
Referenced by getOuterConeAngle(), initProperties(), setOuterConeAngle(), and unloadImpl().
f32 sound::SoundData::mOuterConeGain [protected] |
Referenced by getOuterConeGain(), initProperties(), setOuterConeGain(), and unloadImpl().
f32 sound::SoundData::mPitch [protected] |
Referenced by getPitch(), initProperties(), setPitch(), and unloadImpl().
The KG Game Engine
Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:10 by
Doxygen
(1.7.4)
|