Changeset 4504 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Jun 4, 2005, 12:38:30 AM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 added
- 22 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.am
r4500 r4504 1 1 MAINSRCDIR=. 2 2 include $(MAINSRCDIR)/defs/include_paths.am 3 4 3 5 4 … … 67 66 lib/graphics/importer/material.cc \ 68 67 lib/graphics/importer/texture.cc \ 68 lib/sound/sound_engine.cc \ 69 69 lib/lang/base_object.cc \ 70 70 lib/util/ini_parser.cc \ … … 116 116 defs/sdlincl.h \ 117 117 defs/glincl.h \ 118 defs/alincl.h \ 118 119 defs/comincl.h \ 119 120 defs/confincl.h \ … … 137 138 lib/graphics/importer/material.h \ 138 139 lib/graphics/importer/texture.h \ 140 lib/sound/sound_engine.h \ 139 141 lib/lang/base_object.h \ 140 142 lib/util/ini_parser.h \ -
orxonox/trunk/src/Makefile.in
r4500 r4504 69 69 text_engine.$(OBJEXT) array.$(OBJEXT) objModel.$(OBJEXT) \ 70 70 md2Model.$(OBJEXT) primitive_model.$(OBJEXT) model.$(OBJEXT) \ 71 material.$(OBJEXT) texture.$(OBJEXT) base_object.$(OBJEXT) \72 ini_parser.$(OBJEXT) substring.$(OBJEXT) vector.$(OBJEXT) \73 curve.$(OBJEXT) glmenu_imagescreen.$(OBJEXT) \71 material.$(OBJEXT) texture.$(OBJEXT) sound_engine.$(OBJEXT) \ 72 base_object.$(OBJEXT) ini_parser.$(OBJEXT) substring.$(OBJEXT) \ 73 vector.$(OBJEXT) curve.$(OBJEXT) glmenu_imagescreen.$(OBJEXT) \ 74 74 benchmark.$(OBJEXT) 75 75 orxonox_OBJECTS = $(am_orxonox_OBJECTS) … … 102 102 @AMDEP_TRUE@ ./$(DEPDIR)/resource_manager.Po \ 103 103 @AMDEP_TRUE@ ./$(DEPDIR)/satellite.Po ./$(DEPDIR)/skybox.Po \ 104 @AMDEP_TRUE@ ./$(DEPDIR)/skysphere.Po ./$(DEPDIR)/state.Po \ 104 @AMDEP_TRUE@ ./$(DEPDIR)/skysphere.Po \ 105 @AMDEP_TRUE@ ./$(DEPDIR)/sound_engine.Po ./$(DEPDIR)/state.Po \ 105 106 @AMDEP_TRUE@ ./$(DEPDIR)/story_entity.Po \ 106 107 @AMDEP_TRUE@ ./$(DEPDIR)/substring.Po ./$(DEPDIR)/terrain.Po \ … … 296 297 lib/graphics/importer/material.cc \ 297 298 lib/graphics/importer/texture.cc \ 299 lib/sound/sound_engine.cc \ 298 300 lib/lang/base_object.cc \ 299 301 lib/util/ini_parser.cc \ … … 345 347 defs/sdlincl.h \ 346 348 defs/glincl.h \ 349 defs/alincl.h \ 347 350 defs/comincl.h \ 348 351 defs/confincl.h \ … … 366 369 lib/graphics/importer/material.h \ 367 370 lib/graphics/importer/texture.h \ 371 lib/sound/sound_engine.h \ 368 372 lib/lang/base_object.h \ 369 373 lib/util/ini_parser.h \ … … 402 406 esac; \ 403 407 done; \ 404 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/Makefile'; \408 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ 405 409 cd $(top_srcdir) && \ 406 $(AUTOMAKE) -- foreignsrc/Makefile410 $(AUTOMAKE) --gnu src/Makefile 407 411 .PRECIOUS: Makefile 408 412 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status … … 491 495 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/skybox.Po@am__quote@ 492 496 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/skysphere.Po@am__quote@ 497 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_engine.Po@am__quote@ 493 498 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/state.Po@am__quote@ 494 499 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/story_entity.Po@am__quote@ … … 1210 1215 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1211 1216 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o texture.obj `if test -f 'lib/graphics/importer/texture.cc'; then $(CYGPATH_W) 'lib/graphics/importer/texture.cc'; else $(CYGPATH_W) '$(srcdir)/lib/graphics/importer/texture.cc'; fi` 1217 1218 sound_engine.o: lib/sound/sound_engine.cc 1219 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sound_engine.o -MD -MP -MF "$(DEPDIR)/sound_engine.Tpo" -c -o sound_engine.o `test -f 'lib/sound/sound_engine.cc' || echo '$(srcdir)/'`lib/sound/sound_engine.cc; \ 1220 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/sound_engine.Tpo" "$(DEPDIR)/sound_engine.Po"; else rm -f "$(DEPDIR)/sound_engine.Tpo"; exit 1; fi 1221 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/sound/sound_engine.cc' object='sound_engine.o' libtool=no @AMDEPBACKSLASH@ 1222 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/sound_engine.Po' tmpdepfile='$(DEPDIR)/sound_engine.TPo' @AMDEPBACKSLASH@ 1223 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1224 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sound_engine.o `test -f 'lib/sound/sound_engine.cc' || echo '$(srcdir)/'`lib/sound/sound_engine.cc 1225 1226 sound_engine.obj: lib/sound/sound_engine.cc 1227 @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT sound_engine.obj -MD -MP -MF "$(DEPDIR)/sound_engine.Tpo" -c -o sound_engine.obj `if test -f 'lib/sound/sound_engine.cc'; then $(CYGPATH_W) 'lib/sound/sound_engine.cc'; else $(CYGPATH_W) '$(srcdir)/lib/sound/sound_engine.cc'; fi`; \ 1228 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/sound_engine.Tpo" "$(DEPDIR)/sound_engine.Po"; else rm -f "$(DEPDIR)/sound_engine.Tpo"; exit 1; fi 1229 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='lib/sound/sound_engine.cc' object='sound_engine.obj' libtool=no @AMDEPBACKSLASH@ 1230 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/sound_engine.Po' tmpdepfile='$(DEPDIR)/sound_engine.TPo' @AMDEPBACKSLASH@ 1231 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1232 @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o sound_engine.obj `if test -f 'lib/sound/sound_engine.cc'; then $(CYGPATH_W) 'lib/sound/sound_engine.cc'; else $(CYGPATH_W) '$(srcdir)/lib/sound/sound_engine.cc'; fi` 1212 1233 1213 1234 base_object.o: lib/lang/base_object.cc … … 1445 1466 1446 1467 distdir: $(DISTFILES) 1447 $(mkdir_p) $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/graphics $(distdir)/lib/graphics/importer $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/ util $(distdir)/proto $(distdir)/story_entities $(distdir)/subprojects $(distdir)/util $(distdir)/util/animation $(distdir)/util/loading $(distdir)/util/track $(distdir)/world_entities1468 $(mkdir_p) $(distdir)/defs $(distdir)/glmenu $(distdir)/lib/coord $(distdir)/lib/graphics $(distdir)/lib/graphics/importer $(distdir)/lib/lang $(distdir)/lib/math $(distdir)/lib/sound $(distdir)/lib/util $(distdir)/proto $(distdir)/story_entities $(distdir)/subprojects $(distdir)/util $(distdir)/util/animation $(distdir)/util/loading $(distdir)/util/track $(distdir)/world_entities 1448 1469 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 1449 1470 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ -
orxonox/trunk/src/defs/include_paths.am
r4457 r4504 16 16 AM_CXXFLAGS+=-I$(MAINSRCDIR)/lib/physics 17 17 AM_CXXFLAGS+=-I$(MAINSRCDIR)/lib/physics/fields 18 AM_CXXFLAGS+=-I$(MAINSRCDIR)/lib/sound 18 19 AM_CXXFLAGS+=-I$(MAINSRCDIR)/defs 19 20 AM_CXXFLAGS+=-I$(MAINSRCDIR)/font -
orxonox/trunk/src/lib/Makefile.in
r4484 r4504 186 186 esac; \ 187 187 done; \ 188 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/Makefile'; \188 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile'; \ 189 189 cd $(top_srcdir) && \ 190 $(AUTOMAKE) -- foreignsrc/lib/Makefile190 $(AUTOMAKE) --gnu src/lib/Makefile 191 191 .PRECIOUS: Makefile 192 192 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/event/Makefile.in
r4484 r4504 212 212 esac; \ 213 213 done; \ 214 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/event/Makefile'; \214 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/event/Makefile'; \ 215 215 cd $(top_srcdir) && \ 216 $(AUTOMAKE) -- foreignsrc/lib/event/Makefile216 $(AUTOMAKE) --gnu src/lib/event/Makefile 217 217 .PRECIOUS: Makefile 218 218 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/graphics/Makefile.in
r4438 r4504 177 177 esac; \ 178 178 done; \ 179 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/graphics/Makefile'; \179 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/graphics/Makefile'; \ 180 180 cd $(top_srcdir) && \ 181 $(AUTOMAKE) -- foreignsrc/lib/graphics/Makefile181 $(AUTOMAKE) --gnu src/lib/graphics/Makefile 182 182 .PRECIOUS: Makefile 183 183 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/graphics/importer/Makefile.in
r4438 r4504 181 181 esac; \ 182 182 done; \ 183 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/graphics/importer/Makefile'; \183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/graphics/importer/Makefile'; \ 184 184 cd $(top_srcdir) && \ 185 $(AUTOMAKE) -- foreignsrc/lib/graphics/importer/Makefile185 $(AUTOMAKE) --gnu src/lib/graphics/importer/Makefile 186 186 .PRECIOUS: Makefile 187 187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/gui/Makefile.in
r4438 r4504 241 241 esac; \ 242 242 done; \ 243 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/gui/Makefile'; \243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/gui/Makefile'; \ 244 244 cd $(top_srcdir) && \ 245 $(AUTOMAKE) -- foreignsrc/lib/gui/Makefile245 $(AUTOMAKE) --gnu src/lib/gui/Makefile 246 246 .PRECIOUS: Makefile 247 247 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/particles/Makefile.in
r4438 r4504 209 209 esac; \ 210 210 done; \ 211 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/particles/Makefile'; \211 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/particles/Makefile'; \ 212 212 cd $(top_srcdir) && \ 213 $(AUTOMAKE) -- foreignsrc/lib/particles/Makefile213 $(AUTOMAKE) --gnu src/lib/particles/Makefile 214 214 .PRECIOUS: Makefile 215 215 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/physics/Makefile.in
r4438 r4504 217 217 esac; \ 218 218 done; \ 219 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/physics/Makefile'; \219 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/physics/Makefile'; \ 220 220 cd $(top_srcdir) && \ 221 $(AUTOMAKE) -- foreignsrc/lib/physics/Makefile221 $(AUTOMAKE) --gnu src/lib/physics/Makefile 222 222 .PRECIOUS: Makefile 223 223 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/lib/tinyxml/Makefile.in
r4438 r4504 204 204 esac; \ 205 205 done; \ 206 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/lib/tinyxml/Makefile'; \206 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/tinyxml/Makefile'; \ 207 207 cd $(top_srcdir) && \ 208 $(AUTOMAKE) -- foreignsrc/lib/tinyxml/Makefile208 $(AUTOMAKE) --gnu src/lib/tinyxml/Makefile 209 209 .PRECIOUS: Makefile 210 210 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/orxonox.cc
r4446 r4504 33 33 #include "game_loader.h" 34 34 #include "graphics_engine.h" 35 #include "sound_engine.h" 35 36 #include "resource_manager.h" 36 37 #include "object_manager.h" … … 72 73 Orxonox::singletonRef = NULL; 73 74 delete GraphicsEngine::getInstance(); // deleting the Graphics 75 delete TextEngine::getInstance(); 76 delete SoundEngine::getInstance(); 74 77 delete ResourceManager::getInstance(); // deletes the Resource Manager 75 78 delete ObjectManager::getInstance(); … … 121 124 if( initVideo() == -1) return -1; 122 125 if( initSound() == -1) return -1; 123 printf("> Initializing input\n");126 PRINT(3)("> Initializing input\n"); 124 127 if( initInput() == -1) return -1; 125 printf("> Initializing networking\n");128 PRINT(3)("> Initializing networking\n"); 126 129 if( initNetworking () == -1) return -1; 127 130 //printf("> Initializing world\n"); … … 149 152 int Orxonox::initSound() 150 153 { 151 printf("> Initializing sound\n");154 PRINT(3)("> Initializing sound\n"); 152 155 // SDL_Init(SDL_INIT_AUDIO); 153 printf("Not yet implemented\n");156 SoundEngine::getInstance()->initAudio(); 154 157 return 0; 155 158 } -
orxonox/trunk/src/story_entities/world.cc
r4502 r4504 65 65 #include "event_handler.h" 66 66 67 #include "sound_engine.h" 68 67 69 using namespace std; 68 70 … … 182 184 delete this->particleEngine; 183 185 TextEngine::getInstance()->flush(); 186 SoundEngine::getInstance()->flushAllBuffers(); 187 184 188 delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence. 185 189 delete PhysicsEngine::getInstance(); … … 468 472 this->spawn(terrain); 469 473 474 SoundEngine::getInstance()->setListener(this->localCamera); 470 475 471 476 … … 1079 1084 this->garbageCollector->update(); 1080 1085 this->nullParent->update (this->dtS); 1086 1087 SoundEngine::getInstance()->update(); 1081 1088 } 1082 1089 -
orxonox/trunk/src/subprojects/Makefile.in
r4438 r4504 186 186 esac; \ 187 187 done; \ 188 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/Makefile'; \188 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/Makefile'; \ 189 189 cd $(top_srcdir) && \ 190 $(AUTOMAKE) -- foreignsrc/subprojects/Makefile190 $(AUTOMAKE) --gnu src/subprojects/Makefile 191 191 .PRECIOUS: Makefile 192 192 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/gui/Makefile.in
r4438 r4504 194 194 target_vendor = @target_vendor@ 195 195 MAINSRCDIR = ../.. 196 AM_CXXFLAGS = -I$(MAINSRCDIR) -I$(MAINSRCDIR)/world_entities -I$(MAINSRCDIR)/story_entities -I$(MAINSRCDIR)/lib -I$(MAINSRCDIR)/lib/coord -I$(MAINSRCDIR)/lib/data -I$(MAINSRCDIR)/lib/graphics -I$(MAINSRCDIR)/lib/graphics/importer -I$(MAINSRCDIR)/lib/graphics/particles -I$(MAINSRCDIR)/lib/gui -I$(MAINSRCDIR)/lib/gui/gui -I$(MAINSRCDIR)/lib/lang -I$(MAINSRCDIR)/lib/util -I$(MAINSRCDIR)/lib/math -I$(MAINSRCDIR)/lib/tinyxml -I$(MAINSRCDIR)/defs -I$(MAINSRCDIR)/font -I$(MAINSRCDIR)/network -I$(MAINSRCDIR)/glmenu -I$(MAINSRCDIR)/ai -I$(MAINSRCDIR)/util -I$(MAINSRCDIR)/util/animation -I$(MAINSRCDIR)/util/common -I$(MAINSRCDIR)/util/loading -I$(MAINSRCDIR)/util/track -I$(MAINSRCDIR)/subprojects197 196 AM_LDFLAGS = $(MWINDOWS) 198 197 gui_DEPENDENCIES = $(MAINSRCDIR)/lib/gui/gui/libORXgui.a … … 229 228 esac; \ 230 229 done; \ 231 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/gui/Makefile'; \230 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/gui/Makefile'; \ 232 231 cd $(top_srcdir) && \ 233 $(AUTOMAKE) -- foreignsrc/subprojects/gui/Makefile232 $(AUTOMAKE) --gnu src/subprojects/gui/Makefile 234 233 .PRECIOUS: Makefile 235 234 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status … … 688 687 uninstall-am uninstall-binPROGRAMS uninstall-info-am 689 688 689 include $(MAINSRCDIR)/defs/include_paths.am 690 690 # Tell versions [3.59,3.63) of GNU make to not export all variables. 691 691 # Otherwise a system limit (for SysV at least) may be exceeded. -
orxonox/trunk/src/subprojects/importer/Makefile.in
r4492 r4504 237 237 esac; \ 238 238 done; \ 239 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/importer/Makefile'; \239 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/importer/Makefile'; \ 240 240 cd $(top_srcdir) && \ 241 $(AUTOMAKE) -- foreignsrc/subprojects/importer/Makefile241 $(AUTOMAKE) --gnu src/subprojects/importer/Makefile 242 242 .PRECIOUS: Makefile 243 243 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/particles/Makefile.in
r4493 r4504 260 260 esac; \ 261 261 done; \ 262 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/particles/Makefile'; \262 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/particles/Makefile'; \ 263 263 cd $(top_srcdir) && \ 264 $(AUTOMAKE) -- foreignsrc/subprojects/particles/Makefile264 $(AUTOMAKE) --gnu src/subprojects/particles/Makefile 265 265 .PRECIOUS: Makefile 266 266 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -
orxonox/trunk/src/subprojects/testmain/Makefile.in
r4438 r4504 180 180 target_vendor = @target_vendor@ 181 181 MAINSRCDIR = ../.. 182 AM_CXXFLAGS = -I$(MAINSRCDIR) -I$(MAINSRCDIR)/world_entities -I$(MAINSRCDIR)/story_entities -I$(MAINSRCDIR)/lib -I$(MAINSRCDIR)/lib/data -I$(MAINSRCDIR)/lib/gaphics -I$(MAINSRCDIR)/lib/graphics/importer -I$(MAINSRCDIR)/lib/lang -I$(MAINSRCDIR)/lib/util -I$(MAINSRCDIR)/lib/math -I$(MAINSRCDIR)/defs -I$(MAINSRCDIR)/font -I$(MAINSRCDIR)/network -I$(MAINSRCDIR)/glmenu -I$(MAINSRCDIR)/ai183 182 AM_LDFLAGS = $(MWINDOWS) 184 183 testmain_SOURCES = testmain.cc … … 197 196 esac; \ 198 197 done; \ 199 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/subprojects/testmain/Makefile'; \198 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/subprojects/testmain/Makefile'; \ 200 199 cd $(top_srcdir) && \ 201 $(AUTOMAKE) -- foreignsrc/subprojects/testmain/Makefile200 $(AUTOMAKE) --gnu src/subprojects/testmain/Makefile 202 201 .PRECIOUS: Makefile 203 202 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status … … 435 434 uninstall-am uninstall-binPROGRAMS uninstall-info-am 436 435 436 include $(MAINSRCDIR)/defs/include_paths.am 437 437 # Tell versions [3.59,3.63) of GNU make to not export all variables. 438 438 # Otherwise a system limit (for SysV at least) may be exceeded. -
orxonox/trunk/src/util/resource_manager.cc
r4468 r4504 24 24 #include "texture.h" 25 25 #include "text_engine.h" 26 #include "sound_engine.h" 26 27 27 28 #include "list.h" … … 312 313 else 313 314 PRINTF(2)("Sorry, %s does not exist. Not loading Font\n", fullName); 315 break; 316 case WAV: 317 if(isFile(fullName)) 318 tmpResource->pointer = new SoundBuffer(fullName); 314 319 break; 315 320 case IMAGE: … … 407 412 delete (Texture*)resource->pointer; 408 413 break; 414 case WAV: 415 delete (SoundBuffer*)resource->pointer; 416 break; 409 417 case TTF: 410 418 delete (Font*)resource->pointer; -
orxonox/trunk/src/world_entities/test_gun.cc
r4467 r4504 31 31 #include "list.h" 32 32 #include "animation3d.h" 33 #include "sound_engine.h" 33 34 34 35 #include "object_manager.h" … … 89 90 this->animation3->addKeyFrame(Vector(-2.6, 0.1, -2.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_CONSTANT); 90 91 } 91 92 93 this->fireSound = (SoundBuffer*)ResourceManager::getInstance()->load("sound/shot1.wav", WAV); 94 this->weaponSource = new SoundSource(this->fireSound, this); 95 this->weaponSource->setRolloffFactor(.1); 92 96 Projectile* p = new TestBullet(this); 93 97 ObjectManager::getInstance()->cache(CL_TEST_BULLET, 100, p); … … 146 150 147 151 Projectile* pj = dynamic_cast<Projectile*>(ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET)); 152 weaponSource->play(); 153 148 154 pj->setAbsCoor(this->getAbsCoor() + this->projectileOffset); 149 155 pj->setAbsDir(this->getAbsDir()); -
orxonox/trunk/src/world_entities/weapon.h
r3888 r4504 175 175 int leftRight; // this will become an enum 176 176 177 SoundBuffer* fireSound; 178 SoundSource* weaponSource; 179 180 177 181 private: 178 182 bool enabled; //<! states if the weapon is enabled or not -
orxonox/trunk/src/world_entities/world_entity.h
r4261 r4504 13 13 #include "load_param.h" 14 14 15 16 15 //class CollisionCluster; 17 16 class CharacterAttributes; 18 17 class Model; 18 class SoundEngine; 19 class SoundBuffer; 20 class SoundSource; 21 19 22 //! Basic class from which all interactive stuff in the world is derived from 20 23 class WorldEntity : public PNode
Note: See TracChangeset
for help on using the changeset viewer.