]> git.tdb.fi Git - libs/al.git/blobdiff - source/source.h
Bump version for release
[libs/al.git] / source / source.h
index d5b4663d7d3b9da7a4f1886c2ac10fbb55dd89f1..1426a805cad02e53990d23cd9929edd201fbe179 100644 (file)
@@ -25,6 +25,9 @@ enum SourceState
        STOPPED = AL_STOPPED
 };
 
+/**
+Represents an audio source in the 3D environment.
+*/
 class Source
 {
 private:
@@ -40,12 +43,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<const Buffer *> &);
@@ -53,6 +55,10 @@ public:
        void unqueue_buffers(const std::vector<const Buffer *> &);
        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();