Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
nom::OpenAL::SoundSource Class Reference
Inheritance diagram for nom::OpenAL::SoundSource:
[legend]

Public Member Functions

float getVolume (void) const
 
float getMinVolume (void) const
 
float getMaxVolume (void) const
 
float getPitch (void) const
 
bool getLooping (void) const
 
Point3f getPosition (void) const
 
Point3f getVelocity (void) const
 
bool getPositionRelativeToListener (void) const
 
float getMinDistance (void) const
 
float getAttenuation (void) const
 
int32 getBufferID (void) const
 Obtain buffer identifier of source.
 
float getPlayPosition (void) const
 Obtain the current playback position of source in seconds.
 
SoundStatus getStatus (void) const
 Obtain current state of sound.
 
void setVolume (float gain)
 
void setMinVolume (float gain)
 
void setMaxVolume (float gain)
 
void setPitch (float pitch)
 
void setLooping (bool loops)
 
void setPosition (float x, float y, float z)
 
void setPosition (const Point3f &position)
 
void setVelocity (float x, float y, float z)
 
void setVelocity (const Point3f &velocity)
 
void setPositionRelativeToListener (bool position)
 
void setMinDistance (float distance)
 
void setAttenuation (float attenuation)
 
void setPlayPosition (float seconds)
 Set playback position of source in seconds.
 

Protected Member Functions

 SoundSource (void)
 Constructor can only be called from deriving classes.
 

Protected Attributes

uint32 source_id
 Source identification; used by OpenAL.
 

Detailed Description

Definition at line 52 of file SoundSource.hpp.

Member Function Documentation

float nom::OpenAL::SoundSource::getVolume ( void  ) const

Get source volume level

Volume is between 0 (muted) and 100 (max volume)

Default: 100

Definition at line 50 of file SoundSource.cpp.

void nom::OpenAL::SoundSource::setVolume ( float  gain)

Set source volume level

Volume is between 0 (muted) and 100 (max volume)

Default: 100

Definition at line 185 of file SoundSource.cpp.


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