SoundManager Class Reference

#include <soundManager.h>

Collaboration diagram for SoundManager:

Collaboration graph
[legend]

Public Types

enum  SOUND {
  ONE, TWO, THREE, FOUR,
  FIVE, SIX, SEVEN, EIGHT
}

Public Member Functions

 SoundManager (osg::ref_ptr< osg::Group >)
 ~SoundManager ()
bool init ()
osg::ref_ptr< osgAL::SoundNode > createSound (const std::string &file, float gain=0.8, float pitch=1, bool loop=true)
void playSound (SoundManager::SOUND nb, osg::ref_ptr< osgAL::SoundState > sound_state, int priority)
void setSoundPosition (osg::Vec3d vect)
osg::ref_ptr< osgAL::SoundNode > createSoundNode (const std::string &file, bool occlude, osg::Node *root, bool is_stream)
osg::ref_ptr< osgAL::SoundRoot > getSoundRoot ()
osg::ref_ptr< osgAL::SoundState > getSoundState ()

Private Attributes

osg::ref_ptr< osgAL::SoundState > m_sound_state
osg::ref_ptr< osgAL::SoundRoot > sound_root
osg::ref_ptr< osg::Group > root

Detailed Description

Definition at line 51 of file soundManager.h.


Member Enumeration Documentation

enum SoundManager::SOUND

Enumerator:
ONE 
TWO 
THREE 
FOUR 
FIVE 
SIX 
SEVEN 
EIGHT 

Definition at line 53 of file soundManager.h.


Constructor & Destructor Documentation

SoundManager::SoundManager ( osg::ref_ptr< osg::Group >   ) 

Definition at line 26 of file soundManager.cpp.

References root.

SoundManager::~SoundManager (  ) 

Definition at line 33 of file soundManager.cpp.


Member Function Documentation

bool SoundManager::init (  ) 

Definition at line 40 of file soundManager.cpp.

Referenced by Scene3D::initSound().

osg::ref_ptr< osgAL::SoundNode > SoundManager::createSound ( const std::string &  file,
float  gain = 0.8,
float  pitch = 1,
bool  loop = true 
)

Definition at line 71 of file soundManager.cpp.

void SoundManager::playSound ( SoundManager::SOUND  nb,
osg::ref_ptr< osgAL::SoundState >  sound_state,
int  priority 
)

void SoundManager::setSoundPosition ( osg::Vec3d  vect  ) 

osg::ref_ptr< osgAL::SoundNode > SoundManager::createSoundNode ( const std::string &  file,
bool  occlude,
osg::Node *  root,
bool  is_stream 
)

Definition at line 117 of file soundManager.cpp.

osg::ref_ptr<osgAL::SoundRoot> SoundManager::getSoundRoot (  ) 

osg::ref_ptr<osgAL::SoundState> SoundManager::getSoundState (  ) 


Field Documentation

osg::ref_ptr<osgAL::SoundState> SoundManager::m_sound_state [private]

Definition at line 108 of file soundManager.h.

osg::ref_ptr<osgAL::SoundRoot> SoundManager::sound_root [private]

Definition at line 110 of file soundManager.h.

osg::ref_ptr<osg::Group> SoundManager::root [private]

Definition at line 112 of file soundManager.h.

Referenced by SoundManager().


The documentation for this class was generated from the following files:
Generated on Tue Jun 5 16:57:27 2007 for Anidam by  doxygen 1.5.1