Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 30, 2009, 8:50:44 PM (15 years ago)
Author:
dafrick
Message:

Created capability in SoundManager to set an overall volume, and to also adjust general ambient and effects volumes.
For this to work, you need to delete your config-file (orxonox.ini) so that it can be reset.
It has still som quirks, though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/BaseSound.h

    r6117 r6184  
    6464        void setVolume(float vol);
    6565        float getVolume() const { return this->volume_; }
     66       
     67        void setVolumeGain(float gain);
     68        inline float getVolumeGain()
     69            { return this->volumeGain_; }
     70           
     71        float getEffectiveVolume(void);
    6672
    6773        bool getLooping() const   { return this->bLoop_; }
     
    8692        std::string     source_;
    8793        float           volume_;
     94        float           volumeGain_;
    8895        bool            bLoop_;
    8996        State           state_;
Note: See TracChangeset for help on using the changeset viewer.