Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4985 in orxonox.OLD for orxonox/trunk/src/lib/sound/sound_engine.h


Ignore:
Timestamp:
Aug 12, 2005, 12:55:21 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: loading some stuff from ths sound-engine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/sound/sound_engine.h

    r4961 r4985  
    1616class PNode;
    1717template<class T> class tList;
     18class IniParser;
    1819
    1920
     
    7576    inline static SoundEngine* getInstance() { if (!singletonRef) singletonRef = new SoundEngine();  return singletonRef; };
    7677
     78    void loadSettings(IniParser* iniParser);
     79
    7780    SoundSource* createSource(const char* fileName, PNode* sourceNode = NULL);
    7881
     
    8184    void setDopplerValues(ALfloat dopplerFactor, ALfloat dopplerVelocity);
    8285
     86
     87    /** @returns the Music Volume in % */
     88    inline float getMusicVolume() { return this->musicVolume; };
     89    /** @returns the Effects Volume in % */
     90    inline float getEffectsVolume() { return this->effectsVolume; };
    8391
    8492    void update();
     
    106114    static SoundEngine*      singletonRef;             //!< Reference to this class
    107115
    108 
     116    float                    musicVolume;              //!< the maximum volume of the music in % (0f,1f]
     117    float                    effectsVolume;            //!< the maximum volume of sound-effects in % (0f,1f]
    109118    PNode*                   listener;                 //!< The listener of the Scene
    110119    tList<BaseObject>*       bufferList;               //!< A list of buffers
Note: See TracChangeset for help on using the changeset viewer.