Changeset 3133
- Timestamp:
- Jun 9, 2009, 10:06:57 PM (15 years ago)
- Location:
- code/branches/pch/src/orxonox/sound
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/sound/SoundBase.cc
r3108 r3133 26 26 * 27 27 */ 28 29 #include "SoundBase.h" 30 28 31 #include <vector> 29 32 #include <AL/alut.h> 30 33 #include <vorbis/vorbisfile.h> 31 34 #include <boost/static_assert.hpp> 35 36 #include "util/Math.h" 37 #include "core/Core.h" 32 38 #include "orxonox/objects/worldentities/WorldEntity.h" 33 #include "util/Math.h"34 #include "SoundBase.h"35 39 #include "SoundManager.h" 36 #include "core/Core.h" 40 41 // Make sure we correctly avoid including al.h in the header 42 BOOST_STATIC_ASSERT(sizeof(uint32_t) == sizeof(ALuint)); 43 BOOST_STATIC_ASSERT(sizeof(int32_t) == sizeof(ALint)); 37 44 38 45 namespace orxonox -
code/branches/pch/src/orxonox/sound/SoundBase.h
r3078 r3133 26 26 * 27 27 */ 28 #ifndef _SOUNDBASE_H__ 29 #define _SOUNDBASE_H__ 30 31 #include <AL/al.h> 32 #include <string> 28 #ifndef _SoundBase_H__ 29 #define _SoundBase_H__ 33 30 34 31 #include "OrxonoxPrereqs.h" 32 #include <string> 35 33 36 34 namespace orxonox … … 60 58 61 59 private: 62 ALuint loadOggFile(std::string filename);63 ALuint source_;64 ALuint buffer_;60 uint32_t loadOggFile(std::string filename); 61 uint32_t source_; 62 uint32_t buffer_; 65 63 WorldEntity* entity_; 66 64 67 ALint getSourceState();65 int32_t getSourceState(); 68 66 69 67 static SoundManager* soundmanager_s; … … 71 69 } // namepsace orxonox 72 70 73 #endif / / _SOUNDBASE_H__71 #endif /* _SoundBase_H__ */ -
code/branches/pch/src/orxonox/sound/SoundMainMenu.cc
r3078 r3133 28 28 29 29 #include "SoundMainMenu.h" 30 30 31 #include "core/CoreIncludes.h" 31 32 #include "core/ConfigValueIncludes.h" -
code/branches/pch/src/orxonox/sound/SoundMainMenu.h
r3078 r3133 27 27 */ 28 28 29 #ifndef _SOUNDMAINMENU_H__ 30 #define _SOUNDMAINMENU_H__ 29 #ifndef _SoundMainMenu_H__ 30 #define _SoundMainMenu_H__ 31 32 #include "OrxonoxPrereqs.h" 31 33 32 34 #include <string> 33 34 35 #include "core/OrxonoxClass.h" 35 #include "OrxonoxPrereqs.h"36 36 #include "SoundBase.h" 37 37 … … 48 48 }; 49 49 } 50 #endif 50 51 #endif /* _SoundMainMenu_H__ */ -
code/branches/pch/src/orxonox/sound/SoundManager.cc
r3108 r3133 27 27 */ 28 28 29 #include "SoundManager.h" 30 29 31 #include <AL/alut.h> 30 32 33 #include "util/Math.h" 31 34 #include "orxonox/CameraManager.h" 32 35 #include "orxonox/objects/worldentities/Camera.h" 33 #include "util/Math.h"34 36 #include "SoundBase.h" 35 #include "SoundManager.h"36 37 37 38 namespace orxonox -
code/branches/pch/src/orxonox/sound/SoundManager.h
r3078 r3133 25 25 * ... 26 26 */ 27 #ifndef _SOUNDMANGER_H__ 28 #define _SOUNDMANGER_H__ 29 30 #include <AL/al.h> 31 #include <AL/alc.h> 27 #ifndef _SoundManager_H__ 28 #define _SoundManager_H__ 32 29 33 30 #include "OrxonoxPrereqs.h" 31 32 #include <list> 34 33 #include "orxonox/objects/Tickable.h" 34 35 // forward declarations 36 typedef struct ALCcontext_struct ALCcontext; 37 typedef struct ALCdevice_struct ALCdevice; 35 38 36 39 namespace orxonox … … 49 52 void addSound(SoundBase* sound); 50 53 void removeSound(SoundBase* sound); 51 v irtual void tick(float dt);54 void tick(float dt); 52 55 bool isSoundAvailable(); 53 56 … … 61 64 } // namespace orxonox 62 65 63 #endif / / _SOUNDMANAGER_H__66 #endif /* _SoundManager_H__ */
Note: See TracChangeset
for help on using the changeset viewer.