Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial/src/audio/AudioBuffer.h @ 992

Last change on this file since 992 was 859, checked in by landauf, 17 years ago

more or less a copy of the trunk

File size: 497 bytes
Line 
1#ifndef _AudioBuffer_H__
2#define _AudioBuffer_H__
3
4#include "AudioIncludes.h"
5
6#include "AudioPrereqs.h"
7
8namespace audio
9{
10        class _AudioExport AudioBuffer
11        {
12        public:
13                AudioBuffer(std::string fileName);
14                ~AudioBuffer();
15        private:
16                // Buffers hold sound data.
17                ALuint buffer;
18                // Identifier
19                std::string name;
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;
28        };
29}
30
31#endif /* _AudioBuffer_H__ */
Note: See TracBrowser for help on using the repository browser.