29 #ifndef NOMLIB_AL_SOUNDSOURCE_HEADERS
30 #define NOMLIB_AL_SOUNDSOURCE_HEADERS
35 #include "nomlib/config.hpp"
36 #include "nomlib/audio/AL/OpenAL.hpp"
37 #include "nomlib/math/Point3-inl.hpp"
63 float getMinVolume (
void )
const;
64 float getMaxVolume (
void )
const;
65 float getPitch (
void )
const;
66 bool getLooping (
void )
const;
68 Point3f getPosition (
void )
const;
69 Point3f getVelocity (
void )
const;
71 bool getPositionRelativeToListener (
void )
const;
72 float getMinDistance (
void )
const;
73 float getAttenuation (
void )
const;
88 void setMinVolume (
float gain );
89 void setMaxVolume (
float gain );
90 void setPitch (
float pitch );
91 void setLooping (
bool loops );
93 void setPosition (
float x,
float y,
float z );
94 void setPosition (
const Point3f& position );
96 void setVelocity (
float x,
float y,
float z );
97 void setVelocity (
const Point3f& velocity );
99 void setPositionRelativeToListener (
bool position );
100 void setMinDistance (
float distance );
101 void setAttenuation (
float attenuation );
117 #endif // NOMLIB_AL_SOUNDSOURCE_HEADERS defined
void setPlayPosition(float seconds)
Set playback position of source in seconds.
void setVolume(float gain)
int32 getBufferID(void) const
Obtain buffer identifier of source.
SoundStatus getStatus(void) const
Obtain current state of sound.
float getVolume(void) const
uint32 source_id
Source identification; used by OpenAL.
float getPlayPosition(void) const
Obtain the current playback position of source in seconds.
SoundSource(void)
Constructor can only be called from deriving classes.