public

Inheritance Graph

graph BT
	Source
	Source --> ReferenceCounter
	click Source "classSound_1_1Source"
	click ReferenceCounter "classUtil_1_1ReferenceCounter"

Description

Public Static Functions

   
   
Source * create()

Public Functions

   
   
  ~Source()
   
uint32_t getSourceId() const
   
void enqueueBuffer( Buffer * buffer)
   
void dequeueBuffers(int num)
   
void setAttribute_i(unsigned int attrib, int value)
   
void setAttribute_f(unsigned int attrib, float value)
   
void setAttribute_3f(unsigned int attrib, float v1, float v2, float v3)
   
void getAttribute_3f(unsigned int attrib, float & v1, float & v2, float & v3)
   
int getAttribute_i(unsigned int attrib) const
   
void play()
   
void stop()
   
void pause()
   
void rewind()
   
void setPitch(float f)
   
void setGain(float f)
   
void setMinGain(float f)
   
void setMaxGain(float f)
   
void setRolloffFactor(float f)
   
void setConeOuterGain(float f)
   
void setConeInnerAngle(float f)
   
void setConeOuterAngle(float f)
   
void setReferenceDistance(float f)
   
void setPosition(float x, float y, float z)
   
void setVelocity(float x, float y, float z)
   
void setDirection(float x, float y, float z)
   
void setSourceIsRelative(bool b)
   
void setLooping(bool b)
   
bool isLooping() const
   
bool isPaused() const
   
bool isPlaying() const
   
bool isStopped() const
   
bool isSourceRelative() const
   
int getNumBuffersQueued() const
   
int getNumBuffersProcessed() const
   
int getSourceState() const
   
void getDirection(float & x, float & y, float & z)
   
void getPosition(float & x, float & y, float & z)
   
void getVelocity(float & x, float & y, float & z)

Documentation

function
Sound::Source::create

public static
   
   
Source * create( )

Defined in Sound/Source.h:29


function
Sound::Source::~Source

public
   
   
~Source( )

Defined in Sound/Source.h:30


function
Sound::Source::getSourceId

public const inline
   
   
uint32_t getSourceId( ) const

Defined in Sound/Source.h:32


function
Sound::Source::enqueueBuffer

public
     
     
void enqueueBuffer( Buffer * buffer )

Defined in Sound/Source.h:35


function
Sound::Source::dequeueBuffers

public
     
     
void dequeueBuffers( int num )

Defined in Sound/Source.h:36


function
Sound::Source::setAttribute_i

public
     
     
void setAttribute_i( unsigned int attrib,
  int value
)    

Defined in Sound/Source.h:38


function
Sound::Source::setAttribute_f

public
     
     
void setAttribute_f( unsigned int attrib,
  float value
)    

Defined in Sound/Source.h:39


function
Sound::Source::setAttribute_3f

public
     
     
void setAttribute_3f( unsigned int attrib,
  float v1,
  float v2,
  float v3
)    

Defined in Sound/Source.h:40


function
Sound::Source::getAttribute_3f

public
     
     
void getAttribute_3f( unsigned int attrib,
  float & v1,
  float & v2,
  float & v3
)    

Defined in Sound/Source.h:41


function
Sound::Source::getAttribute_i

public const
     
     
int getAttribute_i( unsigned int attrib ) const

Defined in Sound/Source.h:42


function
Sound::Source::play

public
   
   
void play( )

Defined in Sound/Source.h:45


function
Sound::Source::stop

public
   
   
void stop( )

Defined in Sound/Source.h:46


function
Sound::Source::pause

public
   
   
void pause( )

Defined in Sound/Source.h:47


function
Sound::Source::rewind

public
   
   
void rewind( )

Defined in Sound/Source.h:48


function
Sound::Source::setPitch

public
     
     
void setPitch( float f )

Defined in Sound/Source.h:52


function
Sound::Source::setGain

public
     
     
void setGain( float f )

Defined in Sound/Source.h:53


function
Sound::Source::setMinGain

public
     
     
void setMinGain( float f )

Defined in Sound/Source.h:54


function
Sound::Source::setMaxGain

public
     
     
void setMaxGain( float f )

Defined in Sound/Source.h:55


function
Sound::Source::setRolloffFactor

public
     
     
void setRolloffFactor( float f )

Defined in Sound/Source.h:56


function
Sound::Source::setConeOuterGain

public
     
     
void setConeOuterGain( float f )

Defined in Sound/Source.h:57


function
Sound::Source::setConeInnerAngle

public
     
     
void setConeInnerAngle( float f )

Defined in Sound/Source.h:58


function
Sound::Source::setConeOuterAngle

public
     
     
void setConeOuterAngle( float f )

Defined in Sound/Source.h:59


function
Sound::Source::setReferenceDistance

public
     
     
void setReferenceDistance( float f )

Defined in Sound/Source.h:60


function
Sound::Source::setPosition

public
     
     
void setPosition( float x,
  float y,
  float z
)    

Defined in Sound/Source.h:62


function
Sound::Source::setVelocity

public
     
     
void setVelocity( float x,
  float y,
  float z
)    

Defined in Sound/Source.h:63


function
Sound::Source::setDirection

public
     
     
void setDirection( float x,
  float y,
  float z
)    

Defined in Sound/Source.h:64


function
Sound::Source::setSourceIsRelative

public
     
     
void setSourceIsRelative( bool b )

Defined in Sound/Source.h:66


function
Sound::Source::setLooping

public
     
     
void setLooping( bool b )

Defined in Sound/Source.h:67


function
Sound::Source::isLooping

public const
   
   
bool isLooping( ) const

Defined in Sound/Source.h:69


function
Sound::Source::isPaused

public const
   
   
bool isPaused( ) const

Defined in Sound/Source.h:70


function
Sound::Source::isPlaying

public const
   
   
bool isPlaying( ) const

Defined in Sound/Source.h:71


function
Sound::Source::isStopped

public const
   
   
bool isStopped( ) const

Defined in Sound/Source.h:72


function
Sound::Source::isSourceRelative

public const
   
   
bool isSourceRelative( ) const

Defined in Sound/Source.h:73


function
Sound::Source::getNumBuffersQueued

public const
   
   
int getNumBuffersQueued( ) const

Defined in Sound/Source.h:75


function
Sound::Source::getNumBuffersProcessed

public const
   
   
int getNumBuffersProcessed( ) const

Defined in Sound/Source.h:76


function
Sound::Source::getSourceState

public const
   
   
int getSourceState( ) const

Defined in Sound/Source.h:77


function
Sound::Source::getDirection

public
     
     
void getDirection( float & x,
  float & y,
  float & z
)    

Defined in Sound/Source.h:78


function
Sound::Source::getPosition

public
     
     
void getPosition( float & x,
  float & y,
  float & z
)    

Defined in Sound/Source.h:79


function
Sound::Source::getVelocity

public
     
     
void getVelocity( float & x,
  float & y,
  float & z
)    

Defined in Sound/Source.h:80