Public Methods | |
| SoundRoot () | |
| Default constructor. More... | |
| virtual const char * | libraryName () const |
| virtual const char * | className () const |
| virtual bool | isSameKindAs (const osg::Object *obj) const |
| virtual void | accept (osg::NodeVisitor &nv) |
| void | traverse (osg::NodeVisitor &nv) |
| void | setListenerUpdateFrequency (float f) |
| void | setUpdateEnable (bool flag) |
| bool | getUpdateEnable () const |
| float | getListenerUpdateFrequency () const |
Protected Methods | |
| virtual | ~SoundRoot () |
| Destructor. More... | |
| SoundRoot (const SoundRoot ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| Copy constructor. More... | |
| SoundRoot & | operator= (const SoundRoot &node) |
| Assignment operator. More... | |
Private Attributes | |
| double | m_last_time |
| double | m_first_run |
| osg::Vec3 | m_last_pos |
| int | m_last_traversal_number |
| double | m_update_interval |
| bool | m_update_enabled |
This class updates the internal state of the osgAL::SoundManager during cull traversal from the current modelView matrix. The cull traversal for this node should be called after any changes are made to the SoundManager (added SoundState events or such).
|
|
Default constructor.
|
|
|
Destructor.
|
|
||||||||||||
|
Copy constructor.
|
|
|
|
|
|
|
|
|
Return the frequency by which the orientation and position of the listener is updated |
|
|
|
|
|
|
|
|
|
|
|
Assignment operator.
|
|
|
Set the frequency with which the orientation and position of the listener is updated. This is to avoid calling OpenAL++ listener update to often (click under linux)
|
|
|
|
|
|
Executed during traversal of the scenegraph. If the NodeVisitor is a CullVisitor the orientation/position and velocity of the listener is updated. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.15