source:
orxonox.OLD/trunk/src/lib/sound/sound_buffer.h
@
6480
Last change on this file since 6480 was 5386, checked in by bensch, 19 years ago | |
---|---|
File size: 743 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[5386] | 2 | * @file sound_buffer.h |
3 | * @brief Definition of the sound-buffer-class | |
[3245] | 4 | */ |
[1853] | 5 | |
[5386] | 6 | #ifndef _SOUND_BUFFER_H |
7 | #define _SOUND_BUFFER_H | |
[1853] | 8 | |
[3543] | 9 | #include "base_object.h" |
[5386] | 10 | #include "alincl.h" |
[1853] | 11 | |
[4838] | 12 | // FORWARD DECLARATION |
[3543] | 13 | |
[5386] | 14 | //! A class that represents a datastructure to play Sounds. |
15 | class SoundBuffer : public BaseObject | |
16 | { | |
17 | public: | |
18 | SoundBuffer(const char* fileName); | |
19 | ~SoundBuffer(); | |
[3543] | 20 | |
[5386] | 21 | /** @returns the ID of the buffer used in this SoundBuffer */ |
22 | inline ALuint getID() const { return this->bufferID; } | |
[2036] | 23 | |
[5386] | 24 | private: |
25 | ALuint bufferID; //!< The address of the Buffer. | |
[1853] | 26 | |
[5386] | 27 | ALsizei size; //!< The size of the Buffer. |
28 | ALboolean loop; //!< loop information. | |
[1853] | 29 | }; |
30 | ||
[5386] | 31 | #endif /* _SOUND_BUFFER_H */ |
Note: See TracBrowser
for help on using the repository browser.