HatchitAudio
Public Types | Public Member Functions | List of all members
Hatchit::Audio::Source Class Reference

Public Types

enum  State : ALint {
  Initial = AL_INITIAL, Playing = AL_PLAYING, Paused = AL_PAUSED, Stopped = AL_STOPPED,
  Error = AL_INVALID_OPERATION
}
 

Public Member Functions

 Source (const Source &source)
 
 Source (Source &&source)
 
Sourceoperator= (Source &&source)
 
Sourceoperator= (const Source &source)
 
bool Initialize ()
 
void DeInitialize ()
 
bool Play ()
 
bool Pause ()
 
bool Stop ()
 
bool Rewind ()
 
bool QueueBuffer (const Buffer &b)
 
bool UnqueueBuffer (Buffer &b)
 
void GetPosition (std::array< ALfloat, 3 > &outValueArray) const
 
void GetPosition (ALfloat *outValueArray) const
 
void GetDirection (std::array< ALfloat, 3 > &outValueArray) const
 
void GetDirection (ALfloat *outValueArray) const
 
ALfloat GetPitch () const
 
ALfloat GetGain () const
 
bool GetLooping () const
 
State GetState () const
 
int GetNumBuffersQueued () const
 
int GetNumBuffersProcessed () const
 
bool SetPosition (const std::array< ALfloat, 3 > &values)
 
bool SetPosition (const ALfloat *values)
 
bool SetPosition (ALfloat x, ALfloat y, ALfloat z)
 
bool SetDirection (const std::array< ALfloat, 3 > &values)
 
bool SetDirection (const ALfloat *values)
 
bool SetDirection (ALfloat x, ALfloat y, ALfloat z)
 
bool SetPitch (ALfloat newPitch)
 
bool SetGain (ALfloat newGain)
 
bool SetLooping (bool newVal)
 

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