Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2010, 11:18:00 PM (14 years ago)
Author:
gnadler
Message:

added a launching sound to the rocket.
Added an additional sound-set function to WeaponMode.cc to be able to set the volume as well as the source.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/weaponsystem/WeaponMode.cc

    r6417 r7095  
    274274            return BLANKSTRING;
    275275    }
     276
     277    void WeaponMode::setDefaultSoundWithVolume(const std::string& soundPath, const float soundVolume){
     278        if (this->defSndWpnFire_) {
     279            this->defSndWpnFire_->setSource(soundPath);
     280            this->defSndWpnFire_->setVolume(soundVolume);
     281        }
     282    }
     283
    276284}
Note: See TracChangeset for help on using the changeset viewer.