OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
MWSound::Sound Class Reference

#include <sound.hpp>

Inheritance diagram for MWSound::Sound:
Collaboration diagram for MWSound::Sound:

Public Member Functions

void setPosition (const osg::Vec3f &pos)
 
void setVolume (float volume)
 
void setBaseVolume (float volume)
 
void setFadeout (float duration)
 
void updateFade (float duration)
 
const osg::Vec3f & getPosition () const
 
float getRealVolume () const
 
float getPitch () const
 
float getMinDistance () const
 
float getMaxDistance () const
 
MWBase::SoundManager::PlayType getPlayType () const
 
bool getUseEnv () const
 
bool getIsLooping () const
 
bool getDistanceCull () const
 
bool getIs3D () const
 
 Sound (const osg::Vec3f &pos, float vol, float basevol, float pitch, float mindist, float maxdist, int flags)
 
 Sound (float vol, float basevol, float pitch, int flags)
 

Protected Attributes

Sound_Instance mHandle
 

Private Member Functions

Soundoperator= (const Sound &rhs)
 
 Sound (const Sound &rhs)
 

Private Attributes

osg::Vec3f mPos
 
float mVolume
 
float mBaseVolume
 
float mPitch
 
float mMinDistance
 
float mMaxDistance
 
int mFlags
 
float mFadeOutTime
 

Friends

class OpenAL_Output
 

Constructor & Destructor Documentation

MWSound::Sound::Sound ( const Sound rhs)
private
MWSound::Sound::Sound ( const osg::Vec3f &  pos,
float  vol,
float  basevol,
float  pitch,
float  mindist,
float  maxdist,
int  flags 
)
inline
MWSound::Sound::Sound ( float  vol,
float  basevol,
float  pitch,
int  flags 
)
inline

Member Function Documentation

bool MWSound::Sound::getDistanceCull ( ) const
inline
bool MWSound::Sound::getIs3D ( ) const
inline
bool MWSound::Sound::getIsLooping ( ) const
inline
float MWSound::Sound::getMaxDistance ( ) const
inline
float MWSound::Sound::getMinDistance ( ) const
inline
float MWSound::Sound::getPitch ( ) const
inline
MWBase::SoundManager::PlayType MWSound::Sound::getPlayType ( ) const
inline
const osg::Vec3f& MWSound::Sound::getPosition ( ) const
inline
float MWSound::Sound::getRealVolume ( ) const
inline
bool MWSound::Sound::getUseEnv ( ) const
inline
Sound& MWSound::Sound::operator= ( const Sound rhs)
private
void MWSound::Sound::setBaseVolume ( float  volume)
inline
void MWSound::Sound::setFadeout ( float  duration)
inline
void MWSound::Sound::setPosition ( const osg::Vec3f &  pos)
inline
void MWSound::Sound::setVolume ( float  volume)
inline
void MWSound::Sound::updateFade ( float  duration)
inline

Friends And Related Function Documentation

friend class OpenAL_Output
friend

Member Data Documentation

float MWSound::Sound::mBaseVolume
private
float MWSound::Sound::mFadeOutTime
private
int MWSound::Sound::mFlags
private
Sound_Instance MWSound::Sound::mHandle
protected
float MWSound::Sound::mMaxDistance
private
float MWSound::Sound::mMinDistance
private
float MWSound::Sound::mPitch
private
osg::Vec3f MWSound::Sound::mPos
private
float MWSound::Sound::mVolume
private

The documentation for this class was generated from the following file: