OpenMW
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
MWSound::Sound_Output Class Reference

#include <sound_output.hpp>

List of all members.

Public Member Functions

virtual ~Sound_Output ()
bool isInitialized () const

Protected Member Functions

 Sound_Output (SoundManager &mgr)

Protected Attributes

bool mInitialized
Ogre::Vector3 mPos

Private Member Functions

virtual std::vector< std::string > enumerate ()=0
virtual void init (const std::string &devname="")=0
virtual void deinit ()=0
virtual MWBase::SoundPtr playSound (const std::string &fname, float vol, float basevol, float pitch, int flags, float offset)=0
virtual MWBase::SoundPtr playSound3D (const std::string &fname, const Ogre::Vector3 &pos, float vol, float basevol, float pitch, float min, float max, int flags, float offset)=0
virtual MWBase::SoundPtr streamSound (DecoderPtr decoder, float volume, float pitch, int flags)=0
virtual void updateListener (const Ogre::Vector3 &pos, const Ogre::Vector3 &atdir, const Ogre::Vector3 &updir, Environment env)=0
virtual void pauseSounds (int types)=0
virtual void resumeSounds (int types)=0
Sound_Outputoperator= (const Sound_Output &rhs)
 Sound_Output (const Sound_Output &rhs)

Private Attributes

SoundManagermManager

Friends

class OpenAL_Output
class SoundManager

Constructor & Destructor Documentation

MWSound::Sound_Output::Sound_Output ( SoundManager mgr) [inline, protected]
virtual MWSound::Sound_Output::~Sound_Output ( ) [inline, virtual]

Member Function Documentation

virtual void MWSound::Sound_Output::deinit ( ) [private, pure virtual]

Implemented in MWSound::OpenAL_Output.

virtual std::vector<std::string> MWSound::Sound_Output::enumerate ( ) [private, pure virtual]

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::init ( const std::string &  devname = "") [private, pure virtual]

Implemented in MWSound::OpenAL_Output.

bool MWSound::Sound_Output::isInitialized ( ) const [inline]
Sound_Output& MWSound::Sound_Output::operator= ( const Sound_Output rhs) [private]
virtual void MWSound::Sound_Output::pauseSounds ( int  types) [private, pure virtual]

Implemented in MWSound::OpenAL_Output.

virtual MWBase::SoundPtr MWSound::Sound_Output::playSound ( const std::string &  fname,
float  vol,
float  basevol,
float  pitch,
int  flags,
float  offset 
) [private, pure virtual]
Parameters:
offsetValue from [0,1] meaning from which fraction the sound the playback starts.

Implemented in MWSound::OpenAL_Output.

virtual MWBase::SoundPtr MWSound::Sound_Output::playSound3D ( const std::string &  fname,
const Ogre::Vector3 &  pos,
float  vol,
float  basevol,
float  pitch,
float  min,
float  max,
int  flags,
float  offset 
) [private, pure virtual]
Parameters:
offsetValue from [0,1] meaning from which fraction the sound the playback starts.

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::resumeSounds ( int  types) [private, pure virtual]

Implemented in MWSound::OpenAL_Output.

virtual MWBase::SoundPtr MWSound::Sound_Output::streamSound ( DecoderPtr  decoder,
float  volume,
float  pitch,
int  flags 
) [private, pure virtual]

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::updateListener ( const Ogre::Vector3 &  pos,
const Ogre::Vector3 &  atdir,
const Ogre::Vector3 &  updir,
Environment  env 
) [private, pure virtual]

Implemented in MWSound::OpenAL_Output.


Friends And Related Function Documentation

friend class OpenAL_Output [friend]
friend class SoundManager [friend]

Reimplemented in MWSound::OpenAL_Output.


Member Data Documentation

Ogre::Vector3 MWSound::Sound_Output::mPos [protected]

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