X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsource.h;h=769b35425c14782b280e3451181fbb650510a27b;hb=14008b157c64752ba7c1cef831124992c35c4646;hp=d5b4663d7d3b9da7a4f1886c2ac10fbb55dd89f1;hpb=97dae493948466867b9f661f45e451711dd6b41b;p=libs%2Fal.git diff --git a/source/source.h b/source/source.h index d5b4663..769b354 100644 --- a/source/source.h +++ b/source/source.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspal -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_AL_SOURCE_H_ #define MSP_AL_SOURCE_H_ @@ -25,6 +18,9 @@ enum SourceState STOPPED = AL_STOPPED }; +/** +Represents an audio source in the 3D environment. +*/ class Source { private: @@ -40,12 +36,11 @@ public: void attribute(ALenum, const float *); void get_attribute(ALenum, int *) const; void get_attribute(ALenum, float *) const; + SourceState get_state() const; - unsigned get_buffers_queued() const; - unsigned get_buffers_processed() const; void set_position(float, float, float); - void set_looping(bool); void set_gain(float); + void set_rolloff_factor(float); void set_buffer(const Buffer &); void queue_buffers(const std::vector &); @@ -53,6 +48,10 @@ public: void unqueue_buffers(const std::vector &); void unqueue_buffer(const Buffer &); void clear_buffers(); + unsigned get_buffers_queued() const; + unsigned get_buffers_processed() const; + + void set_looping(bool); void play(); void pause(); void stop();