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

Public Member Functions

 Sound (const SoundBuffer &copy)
 
void setBuffer (const SoundBuffer &copy)
 
void Play (void)
 
void Stop (void)
 
void Pause (void)
 
void reset (void)
 Obtain the current playback position of source in seconds. More...
 
- Public Member Functions inherited from nom::OpenAL::SoundSource
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.
 

Private Attributes

const SoundBuffer * buffer
 Buffer that this sound is attached to.
 

Additional Inherited Members

- Protected Member Functions inherited from nom::OpenAL::SoundSource
 SoundSource (void)
 Constructor can only be called from deriving classes.
 
- Protected Attributes inherited from nom::OpenAL::SoundSource
uint32 source_id
 Source identification; used by OpenAL.
 

Detailed Description

Definition at line 45 of file Sound.hpp.

Member Function Documentation

void nom::OpenAL::Sound::reset ( void  )

Obtain the current playback position of source in seconds.

Set playback position of source in seconds Internally used by SoundBuffer class for properly freeing a sound from its attached buffer

Definition at line 104 of file Sound.cpp.


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