]> git.tdb.fi Git - libs/al.git/blobdiff - source/source.cpp
Bump version for release
[libs/al.git] / source / source.cpp
index 137b785d131ac008b47f335edff6dc5abbb34cdc..ff04adfba0b51949d64ef369438a4aa63349194a 100644 (file)
@@ -60,20 +60,6 @@ SourceState Source::get_state() const
        return static_cast<SourceState>(state);
 }
 
-unsigned Source::get_buffers_queued() const
-{
-       int n;
-       get_attribute(AL_BUFFERS_QUEUED, &n);
-       return n;
-}
-
-unsigned Source::get_buffers_processed() const
-{
-       int n;
-       get_attribute(AL_BUFFERS_PROCESSED, &n);
-       return n;
-}
-
 void Source::set_position(float x, float y, float z)
 {
        attribute(AL_POSITION, x, y, z);
@@ -134,6 +120,20 @@ void Source::clear_buffers()
        attribute(AL_BUFFER, AL_NONE);
 }
 
+unsigned Source::get_buffers_queued() const
+{
+       int n;
+       get_attribute(AL_BUFFERS_QUEUED, &n);
+       return n;
+}
+
+unsigned Source::get_buffers_processed() const
+{
+       int n;
+       get_attribute(AL_BUFFERS_PROCESSED, &n);
+       return n;
+}
+
 void Source::play()
 {
        alSourcePlay(id);