[Orxonox-commit 6365] r11022 - code/trunk/src/modules/portals
landauf at orxonox.net
landauf at orxonox.net
Sat Jan 2 21:50:26 CET 2016
Author: landauf
Date: 2016-01-02 21:50:26 +0100 (Sat, 02 Jan 2016)
New Revision: 11022
Modified:
code/trunk/src/modules/portals/PortalEndPoint.cc
Log:
tweaked portal sound a bit
Modified: code/trunk/src/modules/portals/PortalEndPoint.cc
===================================================================
--- code/trunk/src/modules/portals/PortalEndPoint.cc 2016-01-02 20:24:40 UTC (rev 11021)
+++ code/trunk/src/modules/portals/PortalEndPoint.cc 2016-01-02 20:50:26 UTC (rev 11022)
@@ -63,7 +63,8 @@
this->portalSound_ = new WorldSound(this->getContext());
this->portalSound_->setLooping(false);
this->attach(this->portalSound_);
- this->portalSound_->setSource("sounds/Weapon_HsW01.ogg"); //TODO: change sound file
+ this->portalSound_->setSource("sounds/Portal_1_cut.ogg");
+ this->portalSound_->setVolume(1.0f);
}
}
@@ -170,8 +171,10 @@
entity->rotate(this->getWorldOrientation());
entity->setVelocity(this->getWorldOrientation() * entity->getVelocity());
//play Sound
- if( this->portalSound_ && !(this->portalSound_->isPlaying()))
+ if (this->portalSound_)
{
+ if (this->portalSound_->isPlaying())
+ this->portalSound_->stop();
this->portalSound_->play();
}
}
More information about the Orxonox-commit
mailing list