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.

Location:
code/branches/presentation3/src/orxonox/weaponsystem
Files:
2 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}
  • code/branches/presentation3/src/orxonox/weaponsystem/WeaponMode.h

    r6417 r7095  
    5555            void setDefaultSound(const std::string& soundPath);
    5656            const std::string& getDefaultSound();
    57 
     57            void setDefaultSoundWithVolume(const std::string& soundPath, const float soundVolume);
    5858
    5959            // Munition
Note: See TracChangeset for help on using the changeset viewer.