#include <X3DSoundSourceNode.h>
Inheritance diagram for H3D::X3DSoundSourceNode:

Public Member Functions | |
| X3DSoundSourceNode (Inst< SFNode > _metadata=0, Inst< SFString > _description=0, Inst< SFBool > _loop=0, Inst< SFTime > _pauseTime=0, Inst< SFFloat > _pitch=0, Inst< SFTime > _resumeTime=0, Inst< StartTime > _startTime=0, Inst< StopTime > _stopTime=0, Inst< SFTime > _duration_changed=0, Inst< SFTime > _elapsedTime=0, Inst< SFBool > _isActive=0, Inst< SFBool > _isPaused=0, Inst< TimeHandler > _timeHandler=0) | |
| Constructor. | |
| virtual void | initALBuffers (bool stream) |
| Reads new data into the OpenAL from the reader and attaches them to the sound sources that use this sound source. | |
| virtual void | ALrender () |
| Perform the OpenAL calls to render the sound. | |
| virtual string | defaultXMLContainerField () |
| Returns the default xml containerField attribute value. | |
| virtual void | registerSoundNode (X3DSoundNode *n) |
| Register this sound node with the X3DSoundSourceNode. | |
| virtual void | unregisterSoundNode (X3DSoundNode *n) |
| Unregister this sound node with the X3DSoundSourceNode. | |
| virtual void | onPause () |
| On pause, pause the sound. | |
| virtual void | onResume () |
| On resume, resume paused sound. | |
| virtual void | onStart () |
| On start, initialize AL buffers and start playing. | |
| virtual void | onStop () |
| On stop, stop playing the sound. | |
Public Attributes | |
| auto_ptr< SFString > | description |
| The description field specifies a textual description of the audio source. | |
| auto_ptr< SFFloat > | pitch |
| The pitch field specifies a multiplier for the rate at which sampled sound is played. | |
| auto_ptr< SFTime > | duration_changed |
| The duration field is the length of time in seconds for one cycle of the audio for a pitch set to 1.0. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
Protected Attributes | |
| list< X3DSoundNode * > | parent_sound_nodes |
| The X3DSoundNodes that use this node as sound source. | |
| AutoRef< H3DSoundStreamNode > | reader |
| The H3DSoundStreamNode used to read sound data. | |
| bool | sound_as_stream |
| Indicates if the current sounds source is being streamed or not. | |
| auto_ptr< ALSoundBuffer > | sound_buffer |
| Field that calls ALrender() when a field routed to it has generated an event. | |
Classes | |
| class | ALSoundBuffer |
| Field that calls ALrender() when a field routed to it has generated an event. More... | |
| class | TimeHandler |
| TimeHandler is extended to stream audio data to OpenAL buffers if the sound source is a streaming source. More... | |
|
|
Returns the default xml containerField attribute value. For this node it is "children". Reimplemented from H3D::Node. |
|
|
Reads new data into the OpenAL from the reader and attaches them to the sound sources that use this sound source. The stream param indicates if it should init a stream source or a static source. |
|
|
Register this sound node with the X3DSoundSourceNode. All X3DSoundSourceNodes that want to play this sound source must register with this function. |
|
|
The description field specifies a textual description of the audio source.
Access type: inputOutput
|
|
|
The duration field is the length of time in seconds for one cycle of the audio for a pitch set to 1.0. Access type: outputOnly
|
|
|
The pitch field specifies a multiplier for the rate at which sampled sound is played. Values for the pitch field shall be greater than zero.
Access type: inputOutput
|
1.4.5