Last change
on this file since 706 was
673,
checked in by rgrieder, 18 years ago
|
- deleted obsolete classes: BaseEntity, Entity, Light and SceneNode (please complain if not agreed)
- improved include guard naming consistency
|
File size:
457 bytes
|
Rev | Line | |
---|
[673] | 1 | #ifndef _AudioBuffer_H__ |
---|
| 2 | #define _AudioBuffer_H__ |
---|
[349] | 3 | |
---|
[409] | 4 | #include "AudioIncludes.h" |
---|
[349] | 5 | |
---|
| 6 | namespace audio |
---|
| 7 | { |
---|
| 8 | class AudioBuffer |
---|
| 9 | { |
---|
| 10 | public: |
---|
| 11 | AudioBuffer(std::string fileName); |
---|
| 12 | ~AudioBuffer(); |
---|
| 13 | private: |
---|
| 14 | // Buffers hold sound data. |
---|
[350] | 15 | ALuint buffer; |
---|
[349] | 16 | // Identifier |
---|
| 17 | std::string name; |
---|
[350] | 18 | // True if AL was able to load data |
---|
| 19 | ALboolean loaded; |
---|
| 20 | |
---|
| 21 | ALenum format; |
---|
| 22 | ALsizei size; |
---|
| 23 | ALvoid* data; |
---|
| 24 | ALsizei freq; |
---|
| 25 | ALboolean loop; |
---|
[349] | 26 | }; |
---|
| 27 | } |
---|
| 28 | |
---|
[673] | 29 | #endif /* _AudioBuffer_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.