Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2009, 12:11:40 AM (14 years ago)
Author:
rgrieder
Message:

Improved SoundBuffer class design and removed its pooling property (just a boolean).

File:
1 edited

Legend:

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

    r6322 r6332  
    9292        void unregisterAmbientSound(AmbientSound* oldAmbient);
    9393        void pauseAmbientSound(AmbientSound* ambient);
    94        
     94
    9595        void setVolume(float vol, SoundType::Value type);
    9696        float getVolume(SoundType::Value type); // tolua_export
    97        
     97
    9898        void toggleMute(SoundType::Value type); // tolua_export
    9999        bool getMute(SoundType::Value type); // tolua_export
     
    117117        void checkAmbientVolumeValidity(void);
    118118        void checkEffectsVolumeValidity(void);
    119        
     119
    120120        float checkVolumeRange(float vol);
    121        
     121
    122122        void updateVolume(SoundType::Value type);
    123        
     123
    124124        void setVolumeInternal(float vol, SoundType::Value type);
    125125        float getVolumeInternal(SoundType::Value type);
     
    128128        ALCdevice* device_;
    129129        ALCcontext* context_;
    130        
     130
    131131        typedef std::list<std::pair<AmbientSound*, bool> > AmbientList;
    132132        AmbientList ambientSounds_;
    133        
     133
    134134        float crossFadeStep_;       //!< Absolute change per second (0.1 means 10% of the nominal volume) for cross fading
    135135        std::list<AmbientSound*> fadeInList_;
    136136        std::list<AmbientSound*> fadeOutList_;
    137        
     137
    138138        float soundVolume_;
    139139        float ambientVolume_;
     
    150150        unsigned int maxSources_;
    151151        std::vector<ALuint> soundSources_;
    152        
     152
    153153        static SoundManager* singletonPtr_s;
    154154    }; // tolua_export
Note: See TracChangeset for help on using the changeset viewer.