#include
<oalplus/source.hpp>
template <> class ObjectOps<tag::DirectState, tag::Source> : public SourceName { public: void Play(void); void Pause(void); void Stop(void); void Rewind(void); SourceState State(void) const; void Relative(Boolean value); Boolean Relative(void) const; void Type(SourceType type); SourceType Type(void) const; void Looping(Boolean value); Boolean Looping(void) const; void Buffer(const BufferName& buffer); void DetachBuffers(void); void QueueBuffers(const Sequence<BufferName>& buffers); void UnqueueBuffers(const Sequence<BufferName>& buffers);
Starts the audio playback. See |
|
Pauses the audio playback. See |
|
Stops the audio playback. See |
|
Rewinds the audio track. See |
|
Returns the source state. See |
|
Sets the source to relative or absoulte state. See |
|
Returns true if the source is relative. See |
|
Sets the source type. See |
|
Returns the source type. See |
|
Sets the looping mode. See |
|
Returns true if the source is in looping mode. See |
|
Assigns an audio buffer to the source. See |
|
Detaches all queued buffers from the source. See |
|
Enqueues multiple buffers to the source. See |
|
Enqueues multiple buffers to the source. See |
void Gain(ALfloat value); ALfloat Gain(void) const; void MinGain(ALfloat value); ALfloat MinGain(void) const; void MaxGain(ALfloat value); ALfloat MaxGain(void) const; void ReferenceDistance(ALfloat value); ALfloat ReferenceDistance(void) const; void RolloffFactor(ALfloat value); ALfloat RolloffFactor(void) const; void MaxDistance(ALfloat value); ALfloat MaxDistance(void) const; void Pitch(ALfloat value); ALfloat Pitch(void) const;
Sets the value of gain. See |
|
Returns the value of gain. See |
|
Sets the minimal value of gain. See |
|
Returns the minimal value of gain. See |
|
Sets the maximal value of gain. See |
|
Returns the maximal value of gain. See |
|
Sets the reference distance. See |
|
Returns the reference distance. See |
|
Sets the value of the rolloff factor. See |
|
Returns the value of the rolloff factor. See |
|
Sets the value of max distance used with some distance models. See
|
|
Returns the value of max distance used with some distance models. See
|
|
Sets the value of pitch. See |
|
Returns the value of pitch. See |
void Position(const Vec3f& dir); void Position(ALfloat x, ALfloat y, ALfloat z); Vec3f Position(void) const; void Velocity(const Vec3f& dir); void Velocity(ALfloat x, ALfloat y, ALfloat z); Vec3f Velocity(void) const; void Direction(const Vec3f& dir); void Direction(ALfloat x, ALfloat y, ALfloat z); Vec3f Direction(void) const; void ConeInnerAngle(__Anglef angle); __Anglef ConeInnerAngle(void) const; void ConeOuterAngle(__Anglef angle); __Anglef ConeOuterAngle(void) const; void ConeOuterGain(ALfloat value); ALfloat ConeOuterGain(void) const; void SecOffset(ALfloat value); void SampleOffset(ALfloat value); void ByteOffset(ALfloat value); };
Sets the position of the source. See |
|
Returns the position of the source. See |
|
Sets the velocity vector of the source. See |
|
Returns the velocity vector of the source. See |
|
Sets the direction vector of the source. See |
|
Returns the direction vector of the source. See |
|
Sets the sound cone's inner angle. See |
|
Returns the sound cone's inner angle. See |
|
Sets the sound cone's outer angle. See |
|
Returns the sound cone's outer angle. See |
|
Sets the sound cone's outer gain value. See |
|
Returns the sound cone's outer gain value. See |
|
Sets the Second-offset value. See |
|
Sets the sample-offset value. See |
|
Sets the byte-offset value. See |
typedef ObjectOps<tag::DirectState, tag::Source> SourceOps; typedef Object<SourceOps> Source;