- Timestamp:
- Dec 9, 2009, 2:31:54 PM (15 years ago)
- Location:
- code/branches/presentation2/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/modules/weapons/projectiles/Rocket.cc
r6276 r6285 93 93 this->defSndWpnEngine_->setSource("sounds/Rocket_engine.ogg"); 94 94 this->attach(defSndWpnEngine_); 95 96 this->defSndWpnLaunch_ = new WorldSound(this); 97 this->defSndWpnLaunch_->setLooping(false); 98 this->defSndWpnLaunch_->setSource("sounds/Rocket_launch.ogg"); 99 this->attach(defSndWpnLaunch_); 95 100 } 96 101 … … 111 116 this->defSndWpnEngine_->stop(); 112 117 } 118 if(this->defSndWpnLaunch_->isPlaying()) 119 { 120 this->defSndWpnLaunch_->stop(); 121 } 113 122 delete this->defSndWpnEngine_; 123 delete this->defSndWpnLaunch_; 114 124 } 115 125 } … … 133 143 134 144 this->defSndWpnEngine_->play(); 145 this->defSndWpnLaunch_->play(); 135 146 } 136 147 -
code/branches/presentation2/src/modules/weapons/projectiles/Rocket.h
r6247 r6285 124 124 125 125 WorldSound* defSndWpnEngine_; 126 WorldSound* defSndWpn Explosion_;126 WorldSound* defSndWpnLaunch_; 127 127 }; 128 128 -
code/branches/presentation2/src/modules/weapons/weaponmodes/RocketFire.cc
r6276 r6285 54 54 55 55 this->setMunitionName("RocketMunition"); 56 this->setDefaultSound("sounds/Rocket_launch.ogg");56 // The firing sound of the Rocket is played in Rocket.cc (because of OpenAl sound positioning) 57 57 } 58 58 -
code/branches/presentation2/src/orxonox/sound/BaseSound.cc
r6271 r6285 61 61 { 62 62 alSourcei(this->audioSource_, AL_REFERENCE_DISTANCE, 20); 63 alSourcei(this->audioSource_, AL_MAX_DISTANCE, 300);63 alSourcei(this->audioSource_, AL_MAX_DISTANCE, 10000); 64 64 } 65 65 }
Note: See TracChangeset
for help on using the changeset viewer.