Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

MMAudio::Source Class Reference
[Audio]

An object that emits sound. More...

#include <Source.h>

List of all members.

Public Methods

 Source ()
 Create a source.

float getGain () const
 Get the gain for this source.

void setGain (float)
 Set the gain for this source.

float getRolloff () const
 Get the rolloff for this source.

void setRolloff (float)
 Set the rolloff for this source.

Vector3 getPosition () const
 Get the position of this source.

void setPosition (Vector3)
 Set the position of this source.

Vector3 getVelocity () const
 Get the velocity of this source.

void setVelocity (Vector3)
 Set the velocity of this source.

void playSound (unsigned int sname)
 Play a sound.

void loopSound (unsigned int sname)
 Loop a sound.

void stop ()
 Stop this source from playing it's sound.


Detailed Description

An object that emits sound.

Definition at line 22 of file Source.h.


Member Function Documentation

void Source::loopSound unsigned int    sname
 

Loop a sound.

Parameters:
sname  Name of the sound registered with the buffer manager.

Definition at line 186 of file Source.cpp.

References stop().

void Source::playSound unsigned int    sname
 

Play a sound.

Parameters:
sname  Name of the sound registered with the buffer manager.
Todo:
Provide an easy way for registering sounds

Definition at line 180 of file Source.cpp.

References stop().


The documentation for this class was generated from the following files:
Generated on Thu Aug 18 16:03:36 2005 for Robin Hood: Thieves & Knights by doxygen1.2.18