#include <soundManager.h>
Collaboration diagram for SoundManager:
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 |
Definition at line 51 of file soundManager.h.
enum SoundManager::SOUND |
SoundManager::SoundManager | ( | osg::ref_ptr< osg::Group > | ) |
SoundManager::~SoundManager | ( | ) |
Definition at line 33 of file soundManager.cpp.
bool SoundManager::init | ( | ) |
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 | ( | ) |
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] |