X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsource.h;h=090de0ff36b12e30666fdff8f55c2bd821122046;hb=58dc1e7c15f928d0f861a20c46f2be4112bf5baf;hp=a2455f8c9e4d6cb892dd2b3c7201d2f41212a56e;hpb=feebd0a043d47c6d57ba48dc354e5f52eece28a9;p=libs%2Fal.git diff --git a/source/source.h b/source/source.h index a2455f8..090de0f 100644 --- a/source/source.h +++ b/source/source.h @@ -2,7 +2,7 @@ This file is part of libmspal Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Diestributed under the LGPL +Distributed under the LGPL */ #ifndef MSP_AL_SOURCE_H_ @@ -38,14 +38,19 @@ public: void attribute(ALenum, float); void attribute(ALenum, float, float, float); void attribute(ALenum, const float *); - void get_attr(ALenum, int *) const; - void get_attr(ALenum, float *) const; + 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_buffer(const Buffer &); void queue_buffers(const std::vector &); void queue_buffer(const Buffer &); + void unqueue_buffers(const std::vector &); + void unqueue_buffer(const Buffer &); + void clear_buffers(); void play(); void pause(); void stop();