source:
code/trunk/src/audio/AudioBuffer.h
@
885
Last change on this file since 885 was 790, checked in by nicolasc, 17 years ago | |
---|---|
File size: 497 bytes |
Rev | Line | |
---|---|---|
[673] | 1 | #ifndef _AudioBuffer_H__ |
2 | #define _AudioBuffer_H__ | |
[349] | 3 | |
[409] | 4 | #include "AudioIncludes.h" |
[349] | 5 | |
[729] | 6 | #include "AudioPrereqs.h" |
7 | ||
[349] | 8 | namespace audio |
9 | { | |
[729] | 10 | class _AudioExport AudioBuffer |
[349] | 11 | { |
12 | public: | |
[715] | 13 | AudioBuffer(std::string fileName); |
[349] | 14 | ~AudioBuffer(); |
15 | private: | |
16 | // Buffers hold sound data. | |
[350] | 17 | ALuint buffer; |
[349] | 18 | // Identifier |
[715] | 19 | std::string name; |
[350] | 20 | // True if AL was able to load data |
21 | ALboolean loaded; | |
22 | ||
23 | ALenum format; | |
24 | ALsizei size; | |
25 | ALvoid* data; | |
26 | ALsizei freq; | |
27 | ALboolean loop; | |
[349] | 28 | }; |
29 | } | |
30 | ||
[673] | 31 | #endif /* _AudioBuffer_H__ */ |
Note: See TracBrowser
for help on using the repository browser.