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

#include <sound_output.hpp>

Inheritance diagram for MWSound::Sound_Output:
Collaboration diagram for MWSound::Sound_Output:

Public Member Functions

virtual ~Sound_Output ()
 
bool isInitialized () const
 

Protected Member Functions

 Sound_Output (SoundManager &mgr)
 

Protected Attributes

bool mInitialized
 

Private Member Functions

virtual std::vector< std::string > enumerate ()=0
 
virtual void init (const std::string &devname=std::string())=0
 
virtual void deinit ()=0
 
virtual std::vector< std::string > enumerateHrtf ()=0
 
virtual void enableHrtf (const std::string &hrtfname, bool auto_enable)=0
 
virtual void disableHrtf ()=0
 
virtual Sound_Handle loadSound (const std::string &fname)=0
 
virtual void unloadSound (Sound_Handle data)=0
 
virtual size_t getSoundDataSize (Sound_Handle data) const =0
 
virtual void playSound (MWBase::SoundPtr sound, Sound_Handle data, float offset)=0
 
virtual void playSound3D (MWBase::SoundPtr sound, Sound_Handle data, float offset)=0
 
virtual void finishSound (MWBase::SoundPtr sound)=0
 
virtual bool isSoundPlaying (MWBase::SoundPtr sound)=0
 
virtual void updateSound (MWBase::SoundPtr sound)=0
 
virtual void streamSound (DecoderPtr decoder, MWBase::SoundStreamPtr sound)=0
 
virtual void streamSound3D (DecoderPtr decoder, MWBase::SoundStreamPtr sound, bool getLoudnessData)=0
 
virtual void finishStream (MWBase::SoundStreamPtr sound)=0
 
virtual double getStreamDelay (MWBase::SoundStreamPtr sound)=0
 
virtual double getStreamOffset (MWBase::SoundStreamPtr sound)=0
 
virtual float getStreamLoudness (MWBase::SoundStreamPtr sound)=0
 
virtual bool isStreamPlaying (MWBase::SoundStreamPtr sound)=0
 
virtual void updateStream (MWBase::SoundStreamPtr sound)=0
 
virtual void startUpdate ()=0
 
virtual void finishUpdate ()=0
 
virtual void updateListener (const osg::Vec3f &pos, const osg::Vec3f &atdir, const osg::Vec3f &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 ( const Sound_Output rhs)
private
MWSound::Sound_Output::Sound_Output ( SoundManager mgr)
inlineprotected
virtual MWSound::Sound_Output::~Sound_Output ( )
inlinevirtual

Member Function Documentation

virtual void MWSound::Sound_Output::deinit ( )
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::disableHrtf ( )
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::enableHrtf ( const std::string &  hrtfname,
bool  auto_enable 
)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual std::vector<std::string> MWSound::Sound_Output::enumerate ( )
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual std::vector<std::string> MWSound::Sound_Output::enumerateHrtf ( )
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::finishSound ( MWBase::SoundPtr  sound)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::finishStream ( MWBase::SoundStreamPtr  sound)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::finishUpdate ( )
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual size_t MWSound::Sound_Output::getSoundDataSize ( Sound_Handle  data) const
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual double MWSound::Sound_Output::getStreamDelay ( MWBase::SoundStreamPtr  sound)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual float MWSound::Sound_Output::getStreamLoudness ( MWBase::SoundStreamPtr  sound)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual double MWSound::Sound_Output::getStreamOffset ( MWBase::SoundStreamPtr  sound)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::init ( const std::string &  devname = std::string())
privatepure virtual

Implemented in MWSound::OpenAL_Output.

bool MWSound::Sound_Output::isInitialized ( ) const
inline
virtual bool MWSound::Sound_Output::isSoundPlaying ( MWBase::SoundPtr  sound)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual bool MWSound::Sound_Output::isStreamPlaying ( MWBase::SoundStreamPtr  sound)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual Sound_Handle MWSound::Sound_Output::loadSound ( const std::string &  fname)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

Sound_Output& MWSound::Sound_Output::operator= ( const Sound_Output rhs)
private
virtual void MWSound::Sound_Output::pauseSounds ( int  types)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::playSound ( MWBase::SoundPtr  sound,
Sound_Handle  data,
float  offset 
)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::playSound3D ( MWBase::SoundPtr  sound,
Sound_Handle  data,
float  offset 
)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::resumeSounds ( int  types)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::startUpdate ( )
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::streamSound ( DecoderPtr  decoder,
MWBase::SoundStreamPtr  sound 
)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::streamSound3D ( DecoderPtr  decoder,
MWBase::SoundStreamPtr  sound,
bool  getLoudnessData 
)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::unloadSound ( Sound_Handle  data)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::updateListener ( const osg::Vec3f &  pos,
const osg::Vec3f &  atdir,
const osg::Vec3f &  updir,
Environment  env 
)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::updateSound ( MWBase::SoundPtr  sound)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

virtual void MWSound::Sound_Output::updateStream ( MWBase::SoundStreamPtr  sound)
privatepure virtual

Implemented in MWSound::OpenAL_Output.

Friends And Related Function Documentation

friend class OpenAL_Output
friend
friend class SoundManager
friend

Member Data Documentation

bool MWSound::Sound_Output::mInitialized
protected
SoundManager& MWSound::Sound_Output::mManager
private

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