SPIN Framework
Public Member Functions

spin::Listener Class Reference

Represents an audio listener in 3D. More...

#include <Listener.h>

Inheritance diagram for spin::Listener:
spin::DSPNode spin::GroupNode spin::ReferencedNode

List of all members.

Public Member Functions

 Listener (SceneManager *sceneManager, const char *initID)
virtual void callbackUpdate (osg::NodeVisitor *nv)
virtual std::vector< lo_message > getState () const
virtual void setParam (const char *paramName, const char *paramValue)
virtual void setParam (const char *paramName, float paramValue)
virtual void setURI (const char *uri)

Detailed Description

Represents an audio listener in 3D.

The Listener class is a special type of SoundNode, that allows for different types of connections.


Member Function Documentation

void spin::Listener::callbackUpdate ( osg::NodeVisitor *  nv) [virtual]

For nodes that require regular programmatic control, there is a callback that is evaluated with every refresh. This function can thus be used for animations, or any other periodic updates.

Note that changes to the scene graph structure (eg, moving/deleting nodes should NOT be done within this callback because traversals stacks will become corrupted. The technique is rather to enable a flag and then do the actual change in the SceneManager::updateGraph() method.

Reimplemented from spin::DSPNode.

std::vector< lo_message > spin::Listener::getState ( ) const [virtual]

For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node

Reimplemented from spin::DSPNode.

void spin::Listener::setURI ( const char *  uri) [virtual]

Set the media for the sound node using a URI pattern.

Examples: file://soundfilename.wav file:///home/johndoe/soundfilename.wav http://www.server.com/soundfile.wav adc://1:1 adc://1 content://media/external/audio/media/710 mms://some_media_stream rtsp://127.0.0.1:12311 pd_plugin://audio_plugin_patch.pd

Reimplemented from spin::DSPNode.


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