X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsource.h;h=29118c5ea0d6dd18d2b7abd82b2ae1862d305700;hb=72a8ee9c7d0ff973b20a27184b0c493d3fd5ae59;hp=234dcb832f4a2d8e9b4ca0bf66af3e87ea3bbf37;hpb=35ea5cc8d1eb8c806885d27441548f630e7b1266;p=libs%2Fal.git diff --git a/source/source.h b/source/source.h index 234dcb8..29118c5 100644 --- a/source/source.h +++ b/source/source.h @@ -16,6 +16,14 @@ namespace AL { class Buffer; +enum SourceState +{ + INITIAL = AL_INITIAL, + PLAYING = AL_PLAYING, + PAUSED = AL_PAUSED, + STOPPED = AL_STOPPED +}; + class Source { private: @@ -29,9 +37,18 @@ public: void attribute(ALenum, float); void attribute(ALenum, float, float, float); void attribute(ALenum, const float *); - void set_buffer(Buffer &); - void queue_buffers(const std::vector &); - void queue_buffer(Buffer &); + void get_attr(ALenum, int *) const; + void get_attr(ALenum, float *) const; + SourceState get_state() 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 play(); + void pause(); + void stop(); + void rewind(); }; } // namespace AL