Last change
on this file since 708 was
708,
checked in by rgrieder, 16 years ago
|
- added Vector2, Vector3, Matrix3, ColourValue, Quaternion and String to the misc folder as header files
(each of them contains #include <string> … typedef std::string String , etc.)
- please use String from now on by including <misc/String.h"
- removed #include <OgreVector3.h", etc. from "CoreIncludes.h" (adjusted all source files)
- adjusted all the source files (except network, that keeps <string> for the moment) (what a mess..)
- moved usleep hack to misc/Sleep.h
- relative include paths for files from other root directories (like misc, network, etc.)
(but it stills writes "../Orxonox.h" when in folder orxonox/objects)
- "OgreSceneManager.h" —> <OgreSceneManager.h>
- included OrxonoxPrereqs in every file in folder orxonox
- moved HUD and ParticleInterface to namespace orxonox
- removed some using namespace Ogre/std when appropriate
- I hope I haven't forgotten important points..
|
File size:
465 bytes
|
Line | |
---|
1 | #ifndef _AudioBuffer_H__ |
---|
2 | #define _AudioBuffer_H__ |
---|
3 | |
---|
4 | #include "AudioIncludes.h" |
---|
5 | |
---|
6 | namespace audio |
---|
7 | { |
---|
8 | class AudioBuffer |
---|
9 | { |
---|
10 | public: |
---|
11 | AudioBuffer(orxonox::String fileName); |
---|
12 | ~AudioBuffer(); |
---|
13 | private: |
---|
14 | // Buffers hold sound data. |
---|
15 | ALuint buffer; |
---|
16 | // Identifier |
---|
17 | orxonox::String name; |
---|
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; |
---|
26 | }; |
---|
27 | } |
---|
28 | |
---|
29 | #endif /* _AudioBuffer_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.