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::SoundBase Class Reference

#include <sound.hpp>

Inheritance diagram for MWSound::SoundBase:
Collaboration diagram for MWSound::SoundBase:

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
 
MWSound::Type getPlayType () const
 
bool getUseEnv () const
 
bool getIsLooping () const
 
bool getDistanceCull () const
 
bool getIs3D () const
 
void init (const osg::Vec3f &pos, float vol, float basevol, float pitch, float mindist, float maxdist, int flags)
 
void init (float vol, float basevol, float pitch, int flags)
 
 SoundBase ()
 

Protected Attributes

Sound_Instance mHandle
 

Private Member Functions

SoundBaseoperator= (const SoundBase &)=delete
 
 SoundBase (const SoundBase &)=delete
 
 SoundBase (SoundBase &&)=delete
 

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::SoundBase::SoundBase ( const SoundBase )
privatedelete
MWSound::SoundBase::SoundBase ( SoundBase &&  )
privatedelete
MWSound::SoundBase::SoundBase ( )
inline

Member Function Documentation

bool MWSound::SoundBase::getDistanceCull ( ) const
inline

Here is the caller graph for this function:

bool MWSound::SoundBase::getIs3D ( ) const
inline

Here is the caller graph for this function:

bool MWSound::SoundBase::getIsLooping ( ) const
inline

Here is the caller graph for this function:

float MWSound::SoundBase::getMaxDistance ( ) const
inline

Here is the caller graph for this function:

float MWSound::SoundBase::getMinDistance ( ) const
inline

Here is the caller graph for this function:

float MWSound::SoundBase::getPitch ( ) const
inline

Here is the caller graph for this function:

MWSound::Type MWSound::SoundBase::getPlayType ( ) const
inline

Here is the caller graph for this function:

const osg::Vec3f& MWSound::SoundBase::getPosition ( ) const
inline

Here is the caller graph for this function:

float MWSound::SoundBase::getRealVolume ( ) const
inline

Here is the caller graph for this function:

bool MWSound::SoundBase::getUseEnv ( ) const
inline

Here is the caller graph for this function:

void MWSound::SoundBase::init ( const osg::Vec3f &  pos,
float  vol,
float  basevol,
float  pitch,
float  mindist,
float  maxdist,
int  flags 
)
inline

Here is the caller graph for this function:

void MWSound::SoundBase::init ( float  vol,
float  basevol,
float  pitch,
int  flags 
)
inline
SoundBase& MWSound::SoundBase::operator= ( const SoundBase )
privatedelete
void MWSound::SoundBase::setBaseVolume ( float  volume)
inline

Here is the caller graph for this function:

void MWSound::SoundBase::setFadeout ( float  duration)
inline

Here is the caller graph for this function:

void MWSound::SoundBase::setPosition ( const osg::Vec3f &  pos)
inline

Here is the caller graph for this function:

void MWSound::SoundBase::setVolume ( float  volume)
inline

Here is the caller graph for this function:

void MWSound::SoundBase::updateFade ( float  duration)
inline

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class OpenAL_Output
friend

Member Data Documentation

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

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