# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLSOUND::CSoundAnimMarker Class Reference

#include <sound_anim_marker.h>

List of all members.

Public Methods

 CSoundAnimMarker (float time=0.0f)
virtual ~CSoundAnimMarker ()
virtual void setTime (float time)
 Set the time of this marker. More...

virtual float getTime () const
 Returns the time of this marker. More...

virtual void addSound (std::string &soundName)
 Add a new sound in the set of to-be-played sounds for this marker. More...

virtual void removeSound (std::string &soundName)
 Remove a sound. More...

virtual void getSounds (std::vector< const char * > &sounds)
 Return the set of sounds of this marker. More...

virtual void play (UAudioMixer *mixer, CSoundContext &context)
 Play all the sounds of this marker. More...


Protected Attributes

TMarkerSoundSet _Sounds
 The set of sounds to be played. More...

float _Time
 The time position of this marker. More...


Constructor & Destructor Documentation

NLSOUND::CSoundAnimMarker::CSoundAnimMarker float    time = 0.0f [inline]
 

Definition at line 47 of file sound_anim_marker.h.

References _Time.

NLSOUND::CSoundAnimMarker::~CSoundAnimMarker   [virtual]
 

Definition at line 40 of file sound_anim_marker.cpp.


Member Function Documentation

void NLSOUND::CSoundAnimMarker::addSound std::string &    soundName [virtual]
 

Add a new sound in the set of to-be-played sounds for this marker.

Definition at line 64 of file sound_anim_marker.cpp.

References _Sounds, and nlwarning.

void NLSOUND::CSoundAnimMarker::getSounds std::vector< const char * > &    sounds [virtual]
 

Return the set of sounds of this marker.

Definition at line 91 of file sound_anim_marker.cpp.

References _Sounds.

virtual float NLSOUND::CSoundAnimMarker::getTime   const [inline, virtual]
 

Returns the time of this marker.

Definition at line 54 of file sound_anim_marker.h.

References _Time.

void NLSOUND::CSoundAnimMarker::play UAudioMixer   mixer,
CSoundContext   context
[virtual]
 

Play all the sounds of this marker.

Definition at line 46 of file sound_anim_marker.cpp.

References _Sounds.

void NLSOUND::CSoundAnimMarker::removeSound std::string &    soundName [virtual]
 

Remove a sound.

Definition at line 76 of file sound_anim_marker.cpp.

References _Sounds, and nlwarning.

virtual void NLSOUND::CSoundAnimMarker::setTime float    time [inline, virtual]
 

Set the time of this marker.

Definition at line 51 of file sound_anim_marker.h.

References _Time.


Member Data Documentation

TMarkerSoundSet NLSOUND::CSoundAnimMarker::_Sounds [protected]
 

The set of sounds to be played.

Definition at line 72 of file sound_anim_marker.h.

Referenced by addSound, getSounds, play, and removeSound.

float NLSOUND::CSoundAnimMarker::_Time [protected]
 

The time position of this marker.

Definition at line 75 of file sound_anim_marker.h.

Referenced by CSoundAnimMarker, getTime, and setTime.


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