Changeset 3060 for code/trunk/src
- Timestamp:
- May 25, 2009, 3:07:31 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 8 added
- 1 deleted
- 78 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/sound (added) merged: 2829,2866,2899,2930-2932,2950,2955,2966-2968,2980,2982,2984,2998-2999,3010
- Property svn:mergeinfo changed
-
code/trunk/src/CMakeLists.txt
r2724 r3060 141 141 ADD_SUBDIRECTORY(util) 142 142 ADD_SUBDIRECTORY(core) 143 #ADD_SUBDIRECTORY(audio)144 143 ADD_SUBDIRECTORY(network) 145 144 ADD_SUBDIRECTORY(orxonox) -
code/trunk/src/core/LuaBind.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/core/LuaBind.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/core/LuaBind.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/core/LuaBind.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/core/Template.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/core/Template.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/core/Template.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/core/Template.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/core/XMLFile.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/core/XMLFile.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/core/XMLIncludes.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/core/XMLIncludes.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/cpptcl/cpptcl.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/cpptcl/cpptcl.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/cpptcl/cpptcl.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/cpptcl/cpptcl.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/network/synchronisable/NetworkCallback.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/network/synchronisable/NetworkCallback.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/network/synchronisable/Synchronisable.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/network/synchronisable/Synchronisable.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/network/synchronisable/Synchronisable.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/network/synchronisable/Synchronisable.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/CMakeLists.txt
r2963 r3060 31 31 ADD_SUBDIRECTORY(overlays) 32 32 ADD_SUBDIRECTORY(tools) 33 ADD_SUBDIRECTORY(sound) 33 34 GET_ALL_HEADER_FILES(ORXONOX_HDR_FILES) 34 35 SET(ORXONOX_FILES ${ORXONOX_SRC_FILES} ${ORXONOX_HDR_FILES}) … … 51 52 ${CEGUILUA_LIBRARY} 52 53 ${Boost_SYSTEM_LIBRARY} 54 ${OPENAL_LIBRARY} 55 ${ALUT_LIBRARY} 56 ${VORBISFILE_LIBRARY} 57 ${VORBIS_LIBRARY} 58 ${OGG_LIBRARY} 53 59 ogreceguirenderer_orxonox 54 60 tinyxml++_orxonox … … 58 64 core 59 65 network 60 #audio61 66 ) 62 67 -
code/trunk/src/orxonox/CameraManager.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/CameraManager.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/CameraManager.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/CameraManager.h merged eligible
r3028 r3060 56 56 57 57 static CameraManager& getInstance() { assert(singletonRef_s); return *singletonRef_s; } 58 static CameraManager* getInstancePtr() { return singletonRef_s; } 58 59 59 60 void useCamera(Ogre::Camera* camera); -
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/OrxonoxPrereqs.h
r3053 r3060 255 255 //gui 256 256 class GUIManager; 257 258 //sound 259 class SoundBase; 260 class SoundManager; 261 class SoundMainMenu; 257 262 } 258 263 -
code/trunk/src/orxonox/gamestates/GSMainMenu.cc
r2957 r3060 40 40 #include "objects/Scene.h" 41 41 #include "GraphicsManager.h" 42 #include "sound/SoundMainMenu.h" 42 43 43 44 namespace orxonox … … 79 80 80 81 InputManager::getInstance().requestEnterState("mainMenu"); 82 83 this->ambient_ = new SoundMainMenu(); 84 this->ambient_->play(true); 81 85 } 82 86 83 87 void GSMainMenu::deactivate() 84 88 { 89 delete this->ambient_; 90 85 91 InputManager::getInstance().requestLeaveState("mainMenu"); 86 92 InputManager::getInstance().requestDestroyState("mainMenu"); -
code/trunk/src/orxonox/gamestates/GSMainMenu.h
r2896 r3060 55 55 // console commands 56 56 ConsoleCommand* ccStartGame_; 57 58 // ambient sound for the main menu 59 SoundMainMenu* ambient_; 57 60 }; 58 61 } -
code/trunk/src/orxonox/objects/Level.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/Level.cc merged eligible
r3028 r3060 41 41 #include "objects/gametypes/Gametype.h" 42 42 #include "overlays/OverlayGroup.h" 43 #include "sound/SoundBase.h" 43 44 44 45 #include "util/Math.h" … … 68 69 if (this->xmlfile_) 69 70 Loader::unload(this->xmlfile_); 71 72 if(this->ambientsound_ != NULL) 73 delete this->ambientsound_; 70 74 } 71 75 } … … 77 81 XMLPortParam(Level, "description", setDescription, getDescription, xmlelement, mode); 78 82 XMLPortParam(Level, "gametype", setGametypeString, getGametypeString, xmlelement, mode).defaultValues("Gametype"); 83 84 XMLPortParamLoadOnly(Level, "ambientsound", loadAmbientSound, xmlelement, mode); 79 85 80 86 XMLPortObjectExtended(Level, BaseObject, "", addObject, getObject, xmlelement, mode, true, false); … … 148 154 } 149 155 156 void Level::loadAmbientSound(const std::string& filename) 157 { 158 if(filename == "") return; 159 else 160 { 161 if(this->ambientsound_ == NULL) 162 { 163 this->ambientsound_ = new SoundBase(); 164 } 165 166 this->ambientsound_->loadFile(filename); 167 this->ambientsound_->play(true); 168 } 169 } 170 150 171 void Level::playerEntered(PlayerInfo* player) 151 172 { -
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/Level.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/Level.h merged eligible
r3028 r3060 51 51 { return this->description_; } 52 52 53 void loadAmbientSound(const std::string& filename); 54 53 55 void playerEntered(PlayerInfo* player); 54 56 void playerLeft(PlayerInfo* player); … … 69 71 XMLFile* xmlfile_; 70 72 std::list<BaseObject*> objects_; 73 74 SoundBase* ambientsound_; 71 75 }; 72 76 } -
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/collisionshapes
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/collisionshapes merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/gametypes/TeamDeathmatch.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/gametypes/TeamDeathmatch.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/items/Engine.cc
r2662 r3060 36 36 #include "objects/worldentities/pawns/SpaceShip.h" 37 37 #include "tools/Shader.h" 38 #include "sound/SoundBase.h" 38 39 39 40 namespace orxonox … … 66 67 this->setConfigValues(); 67 68 this->registerVariables(); 69 70 this->sound_ = NULL; 68 71 } 69 72 … … 76 79 if (this->boostBlur_) 77 80 delete this->boostBlur_; 81 82 if(this->sound_ != NULL) 83 delete this->sound_; 78 84 } 79 85 } … … 95 101 XMLPortParam(Engine, "accelerationleftright", setAccelerationLeftRight, setAccelerationLeftRight, xmlelement, mode); 96 102 XMLPortParam(Engine, "accelerationupdown", setAccelerationUpDown, setAccelerationUpDown, xmlelement, mode); 103 104 XMLPortParamLoadOnly(Engine, "sound", loadSound, xmlelement, mode); 97 105 } 98 106 … … 219 227 { 220 228 this->ship_ = ship; 229 221 230 if (ship) 222 231 { … … 230 239 this->boostBlur_ = 0; 231 240 } 241 242 if(this->sound_ != NULL) 243 this->sound_->attachToEntity(ship); 232 244 } 233 245 } … … 240 252 return Vector3::ZERO; 241 253 } 254 255 void Engine::loadSound(const std::string filename) 256 { 257 if(filename == "") return; 258 else 259 { 260 if(this->sound_ == NULL) 261 { 262 this->sound_ = new SoundBase(this->ship_); 263 } 264 265 this->sound_->loadFile(filename); 266 this->sound_->play(true); 267 } 268 } 242 269 } -
code/trunk/src/orxonox/objects/items/Engine.h
r2662 r3060 107 107 virtual const Vector3& getDirection() const; 108 108 109 void loadSound(const std::string filename); 110 109 111 private: 110 112 void networkcallback_shipID(); … … 129 131 Shader* boostBlur_; 130 132 float blurStrength_; 133 134 SoundBase* sound_; 131 135 }; 132 136 } -
code/trunk/src/orxonox/objects/pickup/Usable.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/pickup/Usable.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddQuestHint.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddQuestHint.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddQuestHint.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddQuestHint.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddReward.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddReward.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/AddReward.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/AddReward.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/ChangeQuestStatus.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/ChangeQuestStatus.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/ChangeQuestStatus.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/CompleteQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/CompleteQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/CompleteQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/CompleteQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/FailQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/FailQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/FailQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/FailQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/GlobalQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/GlobalQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/LocalQuest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/LocalQuest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/LocalQuest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/LocalQuest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/Quest.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/Quest.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/Quest.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/Quest.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestDescription.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestDescription.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestDescription.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestDescription.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestEffect.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestEffect.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestEffect.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestEffect.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestHint.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestHint.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestHint.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestHint.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestItem.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestItem.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestItem.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestItem.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestManager.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestManager.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/QuestManager.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/QuestManager.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/Rewardable.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/Rewardable.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/quest/Rewardable.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/quest/Rewardable.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/Backlight.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/Backlight.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/Backlight.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/Backlight.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/Camera.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/Camera.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/Camera.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/Camera.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/MobileEntity.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/MobileEntity.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/ParticleSpawner.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/ParticleSpawner.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/StaticEntity.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/StaticEntity.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/StaticEntity.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/StaticEntity.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/triggers/Trigger.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/orxonox/objects/worldentities/triggers/Trigger.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/tolua/all-5.0.lua
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/tolua/all-5.0.lua merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/tolua/all-5.1.lua
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/tolua/all-5.1.lua merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/util
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/util merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/util/Exception.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/util/Exception.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/util/Exception.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/util/Exception.h merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/util/SignalHandler.cc
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/util/SignalHandler.cc merged eligible
-
Property
svn:mergeinfo
set to
-
code/trunk/src/util/SignalHandler.h
-
Property
svn:mergeinfo
set to
/code/branches/sound/src/util/SignalHandler.h merged eligible
-
Property
svn:mergeinfo
set to
Note: See TracChangeset
for help on using the changeset viewer.